code::BitsPrint< T > Struct Template Reference

List of all members.

Detailed Description

template<class T = int>
struct code::BitsPrint< T >

A class that aggregates any value of type T with sizeof( T ) <= 4.

This class is usefull for debugging when decoding bit-encoded short or char because it has an associated operator << that prints out the bits in the underlying representation.

Author:
Lulin Song
Version:
Id
code_BitsPrint.h,v 1.5 2009/06/02 20:17:38 lakshman Exp


Public Member Functions

 BitsPrint (const T &v)
 Build from any single value of type T.

Public Attributes

_value
 Storage for value to be examined bit by bit.


Constructor & Destructor Documentation

template<class T = int>
code::BitsPrint< T >::BitsPrint ( const T &  v  )  [inline]

Build from any single value of type T.


Member Data Documentation

template<class T = int>
T code::BitsPrint< T >::_value

Storage for value to be examined bit by bit.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7