CAPD RedHom Library
BitmapT< word > Class Template Reference

#include <capd/bitSet/BitmapT.h>

Classes

class  BitIterator
 

Public Types

typedef word Word
 
typedef wordWordIterator
 

Public Member Functions

BitIterator begin () const
 
BitIterator end () const
 
 BitmapT (int A_wordLength=0, bool A_clear=false)
 
 BitmapT (int A_wordLength, const char *bytes)
 
 BitmapT (const std::string &s)
 
 BitmapT (const BitmapT &org, bool A_clear=false)
 
 ~BitmapT ()
 
const wordgetBitmap () const
 
BitmapTinvert ()
 
BitmapTclear ()
 
BitmapToperator= (const BitmapT &A_BitMap2)
 
BitmapToperator*= (const BitmapT &A_BitMap2)
 
BitmapToperator+= (const BitmapT &A_BitMap2)
 
BitmapToperator-= (const BitmapT &A_BitMap2)
 
bool operator== (const BitmapT &A_BitMap2)
 
bool operator<= (const BitmapT &A_BitMap2)
 
bool empty () const
 
void swapBits ()
 
void swapBytes ()
 
unsigned long int Length ()
 
int getBit (word)
 
void setBit (word)
 
void clearBit (word)
 
void changeBit (word)
 

Protected Member Functions

void setupBitmapMem ()
 

Protected Attributes

unsigned long int length
 
wordbitmap
 
wordbitmapEnd
 

Static Protected Attributes

static const word oneMask = 1U
 
static const int bitsPerWord =sizeof(word)*8
 
static const int bitsShift =logtwo<bitsPerWord>::value
 
static const word bitsMask =(oneMask << bitsShift) -1
 

Friends

class BitIterator
 
void swap (BitmapT &A_BitMap1, BitmapT &A_BitMap2)
 

Member Typedef Documentation

template<typename word>
typedef word BitmapT< word >::Word
template<typename word>
typedef word* BitmapT< word >::WordIterator

Constructor & Destructor Documentation

template<typename word>
BitmapT< word >::~BitmapT ( )
inline

Member Function Documentation

template<typename word>
const word* BitmapT< word >::getBitmap ( ) const
inline
template<typename word>
unsigned long int BitmapT< word >::Length ( )
inline

Friends And Related Function Documentation

template<typename word>
friend class BitIterator
friend
template<typename word>
void swap ( BitmapT< word > &  A_BitMap1,
BitmapT< word > &  A_BitMap2 
)
friend

Member Data Documentation

template<typename word>
word* BitmapT< word >::bitmap
protected
template<typename word>
word* BitmapT< word >::bitmapEnd
protected
template<typename word>
const word BitmapT< word >::bitsMask =(oneMask << bitsShift) -1
staticprotected
template<typename word>
const int BitmapT< word >::bitsPerWord =sizeof(word)*8
staticprotected
template<typename word>
const int BitmapT< word >::bitsShift =logtwo<bitsPerWord>::value
staticprotected
template<typename word>
unsigned long int BitmapT< word >::length
protected
template<typename word>
const word BitmapT< word >::oneMask = 1U
staticprotected