Main Page Modules Namespaces C++ Classes Compound List File List Index
TemplateTNL::SignedFloat< bitCount > struct Reference

TNL::SignedFloat< bitCount > Struct Template Reference

#include <tnlTypes.h>

Inheritance diagram for TNL::SignedFloat< bitCount >:

TNL::NetType

Detailed Description

template<U32 bitCount>
struct TNL::SignedFloat< bitCount >

Floating point -1...1 value bit-level RPC template wrapper.

When a SignedFloat<X> is in the parameter list for an RPC method, that parameter will be transmitted using X bits.


Public Member Functions

 SignedFloat (F32 val=0)
 operator F32 () const
U32 getPrecisionBits ()

Data Fields

F32 value


Constructor & Destructor Documentation

template<U32 bitCount>
TNL::SignedFloat< bitCount >::SignedFloat F32  val = 0  )  [inline]
 


Member Function Documentation

template<U32 bitCount>
TNL::SignedFloat< bitCount >::operator F32  )  const [inline]
 

template<U32 bitCount>
U32 TNL::SignedFloat< bitCount >::getPrecisionBits  )  [inline]
 


Field Documentation

template<U32 bitCount>
F32 TNL::SignedFloat< bitCount >::value