Syndicate::Data::Int< T, endianess > Struct Template Reference

#include <Syndicate/Data/Int.h>

List of all members.

Public Member Functions

 Int (T x_)
 operator T (void) const

Public Attributes

uint8_t _x [sizeof(T)]


Detailed Description

template<typename T, unsigned endianess>
struct Syndicate::Data::Int< T, endianess >

This class is used as a base class for structures. It has two benefits :

Attention:
It is not tested on all architectures.
Todo:
Check that this class is optimized (are all the code and branches generated ? it shouldn't)


Constructor & Destructor Documentation

template<typename T, unsigned endianess>
Syndicate::Data::Int< T, endianess >::Int ( x_  )  [inline]


Member Function Documentation

template<typename T, unsigned endianess>
Syndicate::Data::Int< T, endianess >::operator T ( void   )  const [inline]


Member Data Documentation

template<typename T, unsigned endianess>
uint8_t Syndicate::Data::Int< T, endianess >::_x[sizeof(T)]


The documentation for this struct was generated from the following file:
Generated on Sun Sep 30 13:08:36 2007 for libSyndicate by  doxygen 1.5.2