TC::Value< T > Class Template Reference
[Base Classes and Functions]

Class for holding none byte ordered data types. More...

#include <TCValue.h>

Collaboration diagram for TC::Value< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Value ()
 default constructor value is init with zero this means the template type must have an operator to init with 0
 Value (const Value< T > &val)
 copy constructor
 Value (const T &val)
 constructor to init with specified value
 operator const T & () const
 cast back to const basic type
const ucharGetBytes () const
ucharGetBytes ()
uint32 GetNumBytes () const
Value< T > & operator= (const T &a)
 assignment operator for setting values

Private Attributes

m_val
 stores the value of


Detailed Description

template<class T>
class TC::Value< T >

Class for holding none byte ordered data types.

Definition at line 60 of file TCValue.h.


Constructor & Destructor Documentation

template<class T >
TC::Value< T >::Value (  )  [inline]

default constructor value is init with zero this means the template type must have an operator to init with 0

Definition at line 68 of file TCValue.h.

References TC::Value< T >::m_val.

template<class T >
TC::Value< T >::Value ( const Value< T > &  val  )  [inline]

copy constructor

Parameters:
val to copy

Definition at line 76 of file TCValue.h.

References TC::Value< T >::m_val.

template<class T >
TC::Value< T >::Value ( const T &  val  )  [inline]

constructor to init with specified value

Parameters:
val value use for init

Definition at line 84 of file TCValue.h.

References TC::Value< T >::m_val.


Member Function Documentation

template<class T >
TC::Value< T >::operator const T & (  )  const [inline]

cast back to const basic type

Definition at line 90 of file TCValue.h.

References TC::Value< T >::m_val.

template<class T >
const uchar* TC::Value< T >::GetBytes (  )  const [inline]

Returns:
bytes in little endian const

Definition at line 96 of file TCValue.h.

References TC::Value< T >::m_val.

template<class T >
uchar* TC::Value< T >::GetBytes (  )  [inline]

Returns:
bytes in little endian non const

Definition at line 98 of file TCValue.h.

References TC::Value< T >::m_val.

template<class T >
uint32 TC::Value< T >::GetNumBytes (  )  const [inline]

Returns:
number of bytes of value

Definition at line 100 of file TCValue.h.

template<class T >
Value<T>& TC::Value< T >::operator= ( const T &  a  )  [inline]

assignment operator for setting values

Definition at line 103 of file TCValue.h.

References TC::Value< T >::m_val.


Member Data Documentation

template<class T >
T TC::Value< T >::m_val [private]


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

Copyright (c) Thomas Goessler 2003 - 2008