Home / Open source / Terimber 2.0
base_bitset Class Referenceprovides the bit functionality
More...
#include <bitset.h>
List of all members.
Detailed Description
provides the bit functionality
Definition at line 38 of file bitset.h.
Member Enumeration Documentation
- Enumerator:
-
bs_bits_in_byte |
bits in byte |
bs_offset |
power of 2 for bits in bytes |
bs_mask |
mask for one byte |
Definition at line 41 of file bitset.h.
Constructor & Destructor Documentation
base_bitset::base_bitset |
( |
size_t |
capacity |
) |
[inline, protected] |
constructor
- Parameters:
-
Definition at line 58 of file bitset.hpp.
Member Function Documentation
bool base_bitset::set |
( |
size_t |
index, |
|
|
bool |
value | |
|
) |
| | [inline] |
bool base_bitset::get |
( |
size_t |
index |
) |
const [inline] |
bool base_bitset::find_first_free |
( |
size_t & |
index |
) |
const [inline] |
bool base_bitset::empty |
( |
|
) |
const [inline] |
bool base_bitset::operator== |
( |
const base_bitset & |
x |
) |
const [inline] |
bool base_bitset::operator!= |
( |
const base_bitset & |
x |
) |
const [inline] |
void base_bitset::reset |
( |
|
) |
[inline] |
bool base_bitset::operator< |
( |
const base_bitset & |
x |
) |
const [inline] |
size_t base_bitset::get_byte_len |
( |
size_t |
bitlen |
) |
[inline, static, protected] |
returns the min bytes required to accomodate bits
- Parameters:
-
Definition at line 120 of file bitset.hpp.
References bs_mask, and bs_offset.
Referenced by _bitset::_bitset(), _bitset::assign(), bitset::bitset(), empty(), find_first_free(), operator &=(), operator<(), bitset::operator=(), operator==(), operator|=(), reset(), bitset::resize(), and _bitset::resize().
size_t base_bitset::offset |
( |
size_t |
index |
) |
[inline, static, protected] |
unsigned char base_bitset::mask |
( |
size_t |
index |
) |
[inline, static, protected] |
returns the mask for reminder of bits by index
- Parameters:
-
Definition at line 137 of file bitset.hpp.
References bs_mask.
Referenced by get(), and set().
Member Data Documentation
capacity - max bits stored in set
Definition at line 120 of file bitset.h.
Referenced by _bitset::assign(), bitset::clear(), _bitset::clear(), empty(), find_first_free(), get(), operator &=(), operator<(), bitset::operator=(), _bitset::operator=(), operator==(), operator|=(), reset(), bitset::resize(), _bitset::resize(), and set().
array of bytes
Definition at line 121 of file bitset.h.
Referenced by _bitset::_bitset(), _bitset::assign(), bitset::bitset(), bitset::clear(), _bitset::clear(), empty(), find_first_free(), get(), operator &=(), operator<(), bitset::operator=(), _bitset::operator=(), operator==(), operator|=(), reset(), bitset::resize(), _bitset::resize(), set(), and bitset::~bitset().
The documentation for this class was generated from the following files:
|
|