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

TNL::Float< bitCount > Struct Template Reference

#include <tnlTypes.h>

Inheritance diagram for TNL::Float< bitCount >:

TNL::NetType

Detailed Description

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

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

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


Public Member Functions

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

Data Fields

F32 value


Constructor & Destructor Documentation

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


Member Function Documentation

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

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


Field Documentation

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