BoolFlags Class Reference
#include <boolflags.h>
Public Member Functions | |
void | set (unsigned int i, bool b=true) |
bool | get (unsigned int i) |
void | clear () |
unsigned char * | data () |
Protected Attributes | |
unsigned char | bits [2] |
Detailed Description
This class stores boolean values in single bytes.
It provides a similar functionality as TQBitArray but requires much less memory. We use it to store the flags of an article
Definition at line 28 of file boolflags.h.
Constructor & Destructor Documentation
◆ BoolFlags()
|
inline |
Definition at line 31 of file boolflags.h.
◆ ~BoolFlags()
|
inline |
Definition at line 32 of file boolflags.h.
Member Function Documentation
◆ clear()
|
inline |
Definition at line 36 of file boolflags.h.
◆ data()
|
inline |
Definition at line 37 of file boolflags.h.
◆ get()
bool BoolFlags::get | ( | unsigned int | i | ) |
Definition at line 42 of file boolflags.cpp.
◆ set()
void BoolFlags::set | ( | unsigned int | i, |
bool | b = true |
||
) |
Definition at line 19 of file boolflags.cpp.
Member Data Documentation
◆ bits
|
protected |
Definition at line 40 of file boolflags.h.
The documentation for this class was generated from the following files: