Sirikata
Classes | Public Types | Public Member Functions | Protected Attributes
Sirikata::VInt< T > Class Template Reference

#include <VInt.hpp>

Inheritance diagram for Sirikata::VInt< T >:
Collaboration diagram for Sirikata::VInt< T >:

List of all members.

Classes

struct  Hasher
 Hasher functor to be used in a hash_map. More...

Public Types

enum  MaxSerializedLengthConstraints { MAX_SERIALIZED_LENGTH = sizeof(T)+sizeof(T)/8+((sizeof(T)%8==0)?0:1) }

Public Member Functions

bool odd () const
read () const
uint64 readRawData () const
unsigned int serializedSize () const
unsigned int serialize (uint8 *destination, unsigned int maxsize) const
bool unserialize (const uint8 *src, unsigned int &size)
 VInt ()
 VInt (T num)
bool operator== (const VInt< T > &other) const
bool operator!= (const VInt< T > &other) const
bool operator< (const VInt< T > &other) const

Protected Attributes

mData

template<class T>
class Sirikata::VInt< T >


Member Enumeration Documentation

Enumerator:
MAX_SERIALIZED_LENGTH 

Constructor & Destructor Documentation

template<class T>
Sirikata::VInt< T >::VInt ( ) [inline]
template<class T>
Sirikata::VInt< T >::VInt ( num) [inline]

Member Function Documentation

template<class T>
bool Sirikata::VInt< T >::odd ( ) const [inline]
template<class T>
bool Sirikata::VInt< T >::operator!= ( const VInt< T > &  other) const [inline]
template<class T>
bool Sirikata::VInt< T >::operator< ( const VInt< T > &  other) const [inline]
template<class T>
bool Sirikata::VInt< T >::operator== ( const VInt< T > &  other) const [inline]
template<class T>
T Sirikata::VInt< T >::read ( ) const [inline]
template<class T>
uint64 Sirikata::VInt< T >::readRawData ( ) const [inline]
template<class T>
unsigned int Sirikata::VInt< T >::serialize ( uint8 *  destination,
unsigned int  maxsize 
) const [inline]
template<class T>
unsigned int Sirikata::VInt< T >::serializedSize ( ) const [inline]
template<class T>
bool Sirikata::VInt< T >::unserialize ( const uint8 *  src,
unsigned int &  size 
) [inline]

Member Data Documentation

template<class T>
T Sirikata::VInt< T >::mData [protected]

The documentation for this class was generated from the following file: