#include <BitSet.H>
Public Member Functions | |
BitSet () | |
BitSet (int bits, bool init) | |
void | define (int bits, bool init) |
BitSet (const BitSet &rhs) | |
BitSet & | operator= (const BitSet &rhs) |
bool | operator< (const BitSet &rhs) const |
~BitSet () | |
bool | operator[] (int i) const |
void | setTrue (int i) |
void | setFalse (int i) |
bool | isEmpty () const |
bool | isFull () const |
int | size () const |
int | linearSize () const |
void | linearIn (const void *const inBuf) |
void | linearOut (void *const a_outBuf) const |
Static Public Member Functions | |
static int | initialize () |
Static Public Attributes | |
static long int | bytes |
static long int | peak |
Private Attributes | |
BITSETWORD * | m_bits |
int | m_size |
int | m_length |
Static Private Attributes | |
static BITSETWORD | trueMasks [BITSETWORDSIZE] |
Friends | |
class | BitSetIterator |
BitSet::BitSet | ( | ) |
BitSet::BitSet | ( | int | bits, | |
bool | init | |||
) |
BitSet::BitSet | ( | const BitSet & | rhs | ) |
BitSet::~BitSet | ( | ) |
void BitSet::define | ( | int | bits, | |
bool | init | |||
) |
bool BitSet::operator< | ( | const BitSet & | rhs | ) | const |
Primary criterion: m_length. Secondary criterion: BITSETWORD-by-BITSETWORD lexicographic comparison of *m_bits.
bool BitSet::operator[] | ( | int | i | ) | const [inline] |
References BITSETWORD, BITSETWORDSIZE, m_bits, m_length, m_size, and trueMasks.
void BitSet::setTrue | ( | int | i | ) |
void BitSet::setFalse | ( | int | i | ) |
Referenced by DenseIntVectSet::operator-=().
bool BitSet::isEmpty | ( | ) | const |
returns 'true' if the entire bitset is zero
bool BitSet::isFull | ( | ) | const |
returns 'true' if entire bitset is 1
int BitSet::size | ( | ) | const [inline] |
References m_size.
static int BitSet::initialize | ( | ) | [static] |
int BitSet::linearSize | ( | ) | const |
void BitSet::linearIn | ( | const void *const | inBuf | ) |
void BitSet::linearOut | ( | void *const | a_outBuf | ) | const |
friend class BitSetIterator [friend] |
long int BitSet::bytes [static] |
long int BitSet::peak [static] |
BITSETWORD* BitSet::m_bits [private] |
Referenced by BitSetIterator::operator()(), and operator[]().
int BitSet::m_size [private] |
Referenced by operator[](), and size().
int BitSet::m_length [private] |
Referenced by operator[]().
BITSETWORD BitSet::trueMasks[BITSETWORDSIZE] [static, private] |
Referenced by BitSetIterator::operator()(), and operator[]().