Chombo + EB  3.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | Friends | List of all members
BitSet Class Reference

#include <BitSet.H>

Public Member Functions

 BitSet ()
 
 BitSet (int bits, bool init)
 
void define (int bits, bool init)
 
 BitSet (const BitSet &rhs)
 
BitSetoperator= (const BitSet &rhs)
 
bool operator< (const BitSet &rhs) const
 
 ~BitSet ()
 
bool operator[] (int i) const
 
void setTrue (int i)
 
void setFalse (int i)
 
void setAllTrue ()
 
void setAllFalse ()
 
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

BITSETWORDm_bits
 
int m_size
 
int m_length
 

Static Private Attributes

static BITSETWORD trueMasks [BITSETWORDSIZE]
 

Friends

class BitSetIterator
 
class BitSetTrueIterator
 

Constructor & Destructor Documentation

◆ BitSet() [1/3]

BitSet::BitSet ( )

◆ BitSet() [2/3]

BitSet::BitSet ( int  bits,
bool  init 
)

◆ BitSet() [3/3]

BitSet::BitSet ( const BitSet rhs)

◆ ~BitSet()

BitSet::~BitSet ( )

Member Function Documentation

◆ define()

void BitSet::define ( int  bits,
bool  init 
)

◆ operator=()

BitSet& BitSet::operator= ( const BitSet rhs)

◆ operator<()

bool BitSet::operator< ( const BitSet rhs) const

Primary criterion: m_length. Secondary criterion: BITSETWORD-by-BITSETWORD lexicographic comparison of *m_bits.

◆ operator[]()

bool BitSet::operator[] ( int  i) const
inline

◆ setTrue()

void BitSet::setTrue ( int  i)

◆ setFalse()

void BitSet::setFalse ( int  i)

◆ setAllTrue()

void BitSet::setAllTrue ( )

◆ setAllFalse()

void BitSet::setAllFalse ( )

◆ isEmpty()

bool BitSet::isEmpty ( ) const

returns 'true' if the entire bitset is zero

◆ isFull()

bool BitSet::isFull ( ) const

returns 'true' if entire bitset is 1

◆ size()

int BitSet::size ( ) const
inline

References m_size.

◆ initialize()

static int BitSet::initialize ( )
static

◆ linearSize()

int BitSet::linearSize ( ) const

◆ linearIn()

void BitSet::linearIn ( const void *const  inBuf)

◆ linearOut()

void BitSet::linearOut ( void *const  a_outBuf) const

Friends And Related Function Documentation

◆ BitSetIterator

friend class BitSetIterator
friend

◆ BitSetTrueIterator

friend class BitSetTrueIterator
friend

Member Data Documentation

◆ bytes

long int BitSet::bytes
static

◆ peak

long int BitSet::peak
static

◆ m_bits

BITSETWORD* BitSet::m_bits
private

◆ m_size

int BitSet::m_size
private

◆ m_length

int BitSet::m_length
private

◆ trueMasks

BITSETWORD BitSet::trueMasks[BITSETWORDSIZE]
staticprivate

The documentation for this class was generated from the following file: