A static bit map.
More...
|
static long | words (long bits) throw () |
| Get the number of Words that are used for the bitmap.
|
|
static long | chars (long bits) throw () |
| Get the number of chars that are used for the bitmap.
|
|
enum | { W_bits = sizeof(word_type) * 8
, C_bits = 8
} |
|
typedef unsigned long | word_type |
| Data type for each element of the bit buffer.
|
|
static unsigned | word_index (unsigned bit) |
| Get the word index for the given bit. More...
|
|
static unsigned | bit_index (unsigned bit) |
| Get the bit index within word_type for the given bit. More...
|
|
word_type * | _bits |
| Pointer to the buffer storing the bits.
|
|
template<int BITS>
class cxx::Bitmap< BITS >
A static bit map.
- Parameters
-
BITS | the number of bits that shall be in the bitmap. |
Definition at line 180 of file bitmap.
◆ scan_zero()
template<int BITS>
long cxx::Bitmap< BITS >::scan_zero |
( |
long |
start_bit = 0 | ) |
const |
throw | ( | |
| ) | | |
|
inline |
Scan for the first zero bit.
- Parameters
-
start_bit | Hint at the number of the first bit to look at. Zero bits below start_bit may or may not be taken into account by the implementation. |
- Return values
-
>= | 0 Number of first zero bit found. |
-1 | All bits at start_bit or higher are set. |
Compared to Bitmap_base::scan_zero(), the upper bound is set to BITS.
Definition at line 285 of file bitmap.
References cxx::Bitmap_base::scan_zero().
The documentation for this class was generated from the following file: