Dillo
|
A bit set, which automatically reallocates when needed. More...
#include <misc.hh>
Public Member Functions | |
BitSet (int initBits) | |
~BitSet () | |
void | intoStringBuffer (misc::StringBuffer *sb) |
bool | get (int i) const |
void | set (int i, bool val) |
void | clear () |
Private Member Functions | |
int | bytesForBits (int bits) |
Private Attributes | |
unsigned char * | bits |
int | numBits |
int | numBytes |
A bit set, which automatically reallocates when needed.
lout::misc::BitSet::BitSet | ( | int | initBits | ) |
References bits, bytesForBits(), clear(), numBits, and numBytes.
lout::misc::BitSet::~BitSet | ( | ) |
References bits.
|
inlineprivate |
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 | ) | const |
References bits, and numBytes.
Referenced by dw::fltk::FltkImgbuf::init().
void lout::misc::BitSet::intoStringBuffer | ( | misc::StringBuffer * | sb | ) |
References lout::misc::StringBuffer::append(), and numBits.
|
private |
|
private |
Referenced by BitSet(), intoStringBuffer(), and set().