News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

TemplateTNL::Int< bitCount > struct Reference

TNL::Int< bitCount > Struct Template Reference

#include <tnlTypes.h>

Inheritance diagram for TNL::Int< bitCount >:

TNL::NetType

Detailed Description

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

Unsigned integer bit-level RPC template wrapper.

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


Public Member Functions

 Int (U32 val=0)
 operator U32 () const
U32 getPrecisionBits ()

Data Fields

U32 value


Constructor & Destructor Documentation

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


Member Function Documentation

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

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


Field Documentation

template<U32 bitCount>
U32 TNL::Int< bitCount >::value