lout::misc::BitSet Class Reference

A bit set, which automatically reallocates when needed. More...

#include <misc.hh>

List of all members.

Public Member Functions

 BitSet (int initBits)
 ~BitSet ()
void intoStringBuffer (misc::StringBuffer *sb)
bool get (int i)
void set (int i, bool val)
void clear ()

Private Member Functions

int bytesForBits (int bits)

Private Attributes

unsigned char * bits
int numBytes


Detailed Description

A bit set, which automatically reallocates when needed.

Constructor & Destructor Documentation

lout::misc::BitSet::BitSet ( int  initBits  ) 

References bits, bytesForBits(), clear(), and numBytes.

lout::misc::BitSet::~BitSet (  ) 

References bits.


Member Function Documentation

int lout::misc::BitSet::bytesForBits ( int  bits  )  [inline, private]

Referenced by BitSet().

void lout::misc::BitSet::clear (  ) 

References bits, and numBytes.

Referenced by BitSet(), and dw::fltk::FltkImgbuf::newScan().

bool lout::misc::BitSet::get ( int  i  ) 

void lout::misc::BitSet::intoStringBuffer ( misc::StringBuffer sb  ) 

void lout::misc::BitSet::set ( int  i,
bool  val 
)


Member Data Documentation

unsigned char* lout::misc::BitSet::bits [private]

Referenced by BitSet(), clear(), get(), set(), and ~BitSet().

Referenced by BitSet(), clear(), get(), intoStringBuffer(), and set().


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

Generated on Wed Sep 7 02:00:38 2011 for Dillo by  doxygen 1.5.9