Binary array implementation. More...
#include <bitarray.h>
Public Member Functions | |
c_bitarray () | |
Constructor. | |
~c_bitarray () | |
Destructor. | |
void | clear (unsigned long pos) |
Sets bit to value of 0. | |
size_t | find_first_zero_bit () |
Finds first bit of value 0. | |
void | set (unsigned long pos) |
Sets bit to value of 1. | |
Private Member Functions | |
void | more (size_t offset) |
Allocates more space (reallocates buffer). | |
Private Attributes | |
unsigned char * | array |
Binary array buffer. | |
size_t | first_zero_bit |
Offset of first zero bit in the array. | |
bool | first_zero_bit_valid |
If "first_zero_bit" has valid value; else: will be computed when required. | |
size_t | size |
Size (in bytes) of binary array buffer. |
Binary array implementation.
Definition at line 74 of file bitarray.h.