Dillo v3.1.1-119-g140d9ebd
|
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 |
lout::misc::BitSet::BitSet | ( | int | initBits | ) |
|
inlineprivate |
void lout::misc::BitSet::clear | ( | ) |
bool lout::misc::BitSet::get | ( | int | i | ) | const |
Definition at line 149 of file misc.cc.
References bits, and numBytes.
Referenced by dw::fltk::FltkImgbuf::init(), intoStringBuffer(), dw::fltk::FltkImgbuf::scaleRowBeautiful(), and dw::fltk::FltkImgbuf::scaleRowSimple().
void lout::misc::BitSet::intoStringBuffer | ( | misc::StringBuffer * | sb | ) |
Definition at line 141 of file misc.cc.
References lout::misc::StringBuffer::append(), get(), and numBits.
Referenced by dw::fltk::FltkImgbuf::copyRow(), dw::fltk::FltkImgbuf::init(), dw::fltk::FltkImgbuf::newScan(), dw::fltk::FltkImgbuf::scaleRowBeautiful(), and dw::fltk::FltkImgbuf::scaleRowSimple().
void lout::misc::BitSet::set | ( | int | i, |
bool | val | ||
) |
Definition at line 157 of file misc.cc.
References bits, numBits, and numBytes.
Referenced by dw::fltk::FltkImgbuf::copyRow(), dw::fltk::FltkImgbuf::scaleRowBeautiful(), and dw::fltk::FltkImgbuf::scaleRowSimple().
|
private |
|
private |
Definition at line 612 of file misc.hh.
Referenced by BitSet(), intoStringBuffer(), and set().
|
private |