scantools
1.0.4
Graphics manipulation with a view towards scanned documents
|
Simple array of bits, useful for static data. More...
#include <bitVector.h>
Public Member Functions | |
quint8 | getBit (int index) const |
Returns the bit at position index. More... | |
Public Attributes | |
quint8 | numBits |
Number of bits stored, must be smaller than or equal to 32. | |
quint32 | value |
Array of bits, there the least significant bit is the last of the bits stored. | |
Simple array of bits, useful for static data.
This class provides a miniature array, storing at most 32 bits. It is mainly useful for storing arrays of bits statically, as in the following example.
Definition at line 128 of file bitVector.h.
|
inline |
Returns the bit at position index.
index | This must be a valid index position in the bit array. In other words, index < numBits. Invalid values will likely lead to segfault |
Definition at line 144 of file bitVector.h.