CAPD RedHom Library
BitmapT< word >::BitIterator< word > Class Template Reference

#include <capd/bitSet/Bitmap_BitIterator.h>

Public Types

typedef BitmapT< word >::WordIterator WordIterator
 

Public Member Functions

void nextBit ()
 
void prevBit ()
 
void nextBit (int n)
 
void prevBit (int n)
 
 BitIterator (const BitmapT< word > &A_Bitmap)
 
 BitIterator (const BitmapT< word > &A_Bitmap, const WordIterator &A_wIt)
 
 BitIterator (const BitmapT< word > &A_Bitmap, const CubFaceIndex &A_index)
 
 BitIterator (const BitmapT< word > &A_Bitmap, int A_wordPos, int A_bitPos)
 
 BitIterator (const BitmapT< word > &A_Bitmap, word A_pos)
 
 BitIterator (const BitmapT< word > &A_Bitmap, const BitIterator &A_it)
 
 BitIterator ()
 
 operator WordIterator ()
 
const BitmapT< word > & getBitmap () const
 
void setBit (int val)
 
void setBit ()
 
void changeBit ()
 
void clearBit ()
 
int getBit () const
 
void operator-- ()
 
void operator++ ()
 
void operator+= (int n)
 
void operator-= (int n)
 
bool operator< (const BitIterator &it2) const
 
bool operator== (const BitIterator &it2) const
 
bool findNextPointInWord ()
 
bool findPoint ()
 
int position () const
 

Public Attributes

WordIterator wIt
 
int bit
 
const BitmapT< word > * itSet
 

Static Public Attributes

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

Friends

class BitmapT< word >
 
class CubFaceIndex
 

Member Typedef Documentation

template<typename word>
template<typename word >
typedef BitmapT<word>::WordIterator BitmapT< word >::BitIterator< word >::WordIterator

Constructor & Destructor Documentation

template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap)
inlineexplicit
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap,
const WordIterator A_wIt 
)
inlineexplicit
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap,
const CubFaceIndex A_index 
)
inline
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap,
int  A_wordPos,
int  A_bitPos 
)
inline
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap,
word  A_pos 
)
inline
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( const BitmapT< word > &  A_Bitmap,
const BitIterator< word > &  A_it 
)
inline
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::BitIterator ( )
inline

Member Function Documentation

template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::changeBit ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::clearBit ( )
inline
template<typename word>
template<typename word >
bool BitmapT< word >::BitIterator< word >::findNextPointInWord ( )
inline
template<typename word>
template<typename word >
bool BitmapT< word >::BitIterator< word >::findPoint ( )
inline
template<typename word>
template<typename word >
int BitmapT< word >::BitIterator< word >::getBit ( ) const
inline
template<typename word>
template<typename word >
const BitmapT<word>& BitmapT< word >::BitIterator< word >::getBitmap ( ) const
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::nextBit ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::nextBit ( int  n)
inline
template<typename word>
template<typename word >
BitmapT< word >::BitIterator< word >::operator WordIterator ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::operator++ ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::operator+= ( int  n)
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::operator-- ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::operator-= ( int  n)
inline
template<typename word>
template<typename word >
bool BitmapT< word >::BitIterator< word >::operator< ( const BitIterator< word > &  it2) const
inline
template<typename word>
template<typename word >
bool BitmapT< word >::BitIterator< word >::operator== ( const BitIterator< word > &  it2) const
inline
template<typename word>
template<typename word >
int BitmapT< word >::BitIterator< word >::position ( ) const
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::prevBit ( )
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::prevBit ( int  n)
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::setBit ( int  val)
inline
template<typename word>
template<typename word >
void BitmapT< word >::BitIterator< word >::setBit ( )
inline

Friends And Related Function Documentation

template<typename word>
template<typename word >
friend class BitmapT< word >
friend
template<typename word>
template<typename word >
friend class CubFaceIndex
friend

Member Data Documentation

template<typename word>
template<typename word >
int BitmapT< word >::BitIterator< word >::bit
template<typename word>
template<typename word >
const word BitmapT< word >::BitIterator< word >::bitsMask =(oneMask << bitsShift) -1
static
template<typename word>
template<typename word >
const int BitmapT< word >::BitIterator< word >::bitsPerWord = 8*sizeof(word)
static
template<typename word>
template<typename word >
const int BitmapT< word >::BitIterator< word >::bitsShift =logtwo<bitsPerWord>::value
static
template<typename word>
template<typename word >
const BitmapT<word>* BitmapT< word >::BitIterator< word >::itSet
template<typename word>
template<typename word >
const word BitmapT< word >::BitIterator< word >::oneMask = 1U
static
template<typename word>
template<typename word >
const word BitmapT< word >::BitIterator< word >::startingMask = 1U
static
template<typename word>
template<typename word >
WordIterator BitmapT< word >::BitIterator< word >::wIt