Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BitSet Class Reference

#include <BitSet.H>

List of all members.

Public Methods

 BitSet ()
 BitSet (int bits, bool init)
void define (int bits, bool init)
 BitSet (const BitSet &rhs)
BitSet & operator= (const BitSet &rhs)
 ~BitSet ()
bool operator[] (int i) const
void setTrue (int i)
void setFalse (int i)
bool isEmpty () const
bool isFull () const
int size () const

Static Public Methods

int initialize ()

Static Public Attributes

long int bytes
long int peak

Private Attributes

WORD * m_bits
int m_size
int m_length

Static Private Attributes

WORD trueMasks [WORDSIZE]

Friends

class BitSetIterator


Constructor & Destructor Documentation

BitSet::BitSet  
 

BitSet::BitSet int    bits,
bool    init
 

BitSet::BitSet const BitSet &    rhs
 

BitSet::~BitSet  
 


Member Function Documentation

void BitSet::define int    bits,
bool    init
 

int BitSet::initialize   [static]
 

bool BitSet::isEmpty   const
 

returns 'true' if the entire bitset is zero

bool BitSet::isFull   const
 

returns 'true' if entire bitset is 1

BitSet& BitSet::operator= const BitSet &    rhs
 

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

void BitSet::setFalse int    i
 

void BitSet::setTrue int    i
 

int BitSet::size   const [inline]
 


Friends And Related Function Documentation

friend class BitSetIterator [friend]
 


Member Data Documentation

long int BitSet::bytes [static]
 

WORD* BitSet::m_bits [private]
 

int BitSet::m_length [private]
 

int BitSet::m_size [private]
 

long int BitSet::peak [static]
 

WORD BitSet::trueMasks[WORDSIZE] [static, private]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:02 2003 for EBChombo by doxygen1.2.16