dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

lout::misc::BitSet Class Reference

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 numBytes
 

Detailed Description

A bit set, which automatically reallocates when needed.

Definition at line 527 of file misc.hh.

Constructor & Destructor Documentation

◆ BitSet()

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

Definition at line 134 of file misc.cc.

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

◆ ~BitSet()

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

Definition at line 141 of file misc.cc.

References bits.

Member Function Documentation

◆ bytesForBits()

int lout::misc::BitSet::bytesForBits ( int  bits)
inlineprivate

Definition at line 533 of file misc.hh.

References bits.

Referenced by BitSet().

◆ clear()

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

Definition at line 180 of file misc.cc.

References bits, and numBytes.

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

◆ get()

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

Definition at line 154 of file misc.cc.

References bits, and numBytes.

Referenced by dw::fltk::FltkImgbuf::init(), and intoStringBuffer().

◆ intoStringBuffer()

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

Definition at line 146 of file misc.cc.

References lout::misc::StringBuffer::append(), get(), and numBytes.

◆ set()

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

Definition at line 162 of file misc.cc.

References bits, and numBytes.

Member Data Documentation

◆ bits

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

Definition at line 530 of file misc.hh.

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

◆ numBytes

int lout::misc::BitSet::numBytes
private

Definition at line 531 of file misc.hh.

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


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