xyzzy::PTBitVecMethods< T > Class Template Reference

#include <bitvec.hxx>

List of all members.

Public Member Functions

template<>
const TUint32 stAllOnes
template<>
const unsigned stMaxBits
template<>
const TUint64 stAllOnes
template<>
const unsigned stMaxBits

Static Public Member Functions

static const T & assign (T &lhs)
static const T & assign (T &lhs, const TBvBase &bref, const T v)
static T assign (T &lhs, const TBvBase &bref, const T &v, unsigned lb, unsigned rb)
static T valueAt (const T &v, const TBvBase &bref, unsigned lb, unsigned rb)
static bool valueAt (const T &v, const TBvBase &bref, unsigned ix)
static unsigned getMaxBits ()

Static Public Attributes

static const unsigned stMaxBits
static const T stAllOnes

Static Private Member Functions

static T onesMask (unsigned lb, unsigned rb)


Detailed Description

template<typename T>
class xyzzy::PTBitVecMethods< T >

This template defines methods which must be implemented by underlying types.


Member Function Documentation

template<typename T>
const T & xyzzy::PTBitVecMethods< T >::assign ( T &  lhs  )  [static]

Initialize lhs to default for type T.

template<typename T>
const T & xyzzy::PTBitVecMethods< T >::assign ( T &  lhs,
const TBvBase bref,
const T  v 
) [static]

Assign v to lhs subject to boundary constraints in bref.

template<typename T>
T xyzzy::PTBitVecMethods< T >::assign ( T &  lhs,
const TBvBase bref,
const T &  v,
unsigned  lb,
unsigned  rb 
) [static]

Assign v to lhs[rb:lb] subject to boundary constraints in bref.

template<typename T>
T xyzzy::PTBitVecMethods< T >::valueAt ( const T &  v,
const TBvBase bref,
unsigned  lb,
unsigned  rb 
) [static]

Return subrange[lb:rb] subject to boundary constraints in bref.

template<typename T>
bool xyzzy::PTBitVecMethods< T >::valueAt ( const T &  v,
const TBvBase bref,
unsigned  ix 
) [static]

Return subrange[ix] subject to boundary constraints in bref.

template<typename T>
static unsigned xyzzy::PTBitVecMethods< T >::getMaxBits (  )  [static]

Return value to set stMaxBits.

template<typename T>
T xyzzy::PTBitVecMethods< T >::onesMask ( unsigned  lb,
unsigned  rb 
) [static, private]

template<>
const TUint32 xyzzy::PTBitVecMethods< TUint32 >::stAllOnes (  ) 

template<>
const unsigned xyzzy::PTBitVecMethods< TUint32 >::stMaxBits (  ) 

template<>
const TUint64 xyzzy::PTBitVecMethods< TUint64 >::stAllOnes (  ) 

template<>
const unsigned xyzzy::PTBitVecMethods< TUint64 >::stMaxBits (  ) 


Member Data Documentation

template<typename T>
const unsigned xyzzy::PTBitVecMethods< T >::stMaxBits [static]

template<typename T>
const T xyzzy::PTBitVecMethods< T >::stAllOnes [static]


The documentation for this class was generated from the following file:
Generated on Thu Mar 22 13:51:08 2007 for anvil by  doxygen 1.5.1