Public Member Functions | Private Member Functions | Private Attributes

c_bitarray Class Reference

Binary array implementation. More...

#include <bitarray.h>

Collaboration diagram for c_bitarray:

List of all members.

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.

Detailed Description

Binary array implementation.

Author:
VooDooMan
Version:
1
Date:
2007-02-05

Definition at line 74 of file bitarray.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 7 2010 15:27:27 for VooDoo cIRCle by doxygen 1.7.1

Get VooDoo cIRCle at SourceForge.net. Fast, secure and Free Open Source software downloads