#include <bitvector.h>
Inheritance diagram for BitVectorPointer:

This is the concrete class which is used to manipulation the contents of a bit-vector.
Definition at line 116 of file bitvector.h.
Public Member Functions | |
| template<size_t S> | |
| BitVectorPointer (BitVectorBits< S > &bits) | |
| BitVectorPointer (unsigned *bits, size_t size) | |
| BitVectorPointer () | |
| void | Reset () |
| int | Test (unsigned index) |
| void | Set (unsigned index) |
| void | Clear (unsigned index) |
| int | TestSet (unsigned index, size_t count) |
| int | TestClear (unsigned index, size_t count) |
| void | Set (unsigned index, size_t count) |
| void | Clear (unsigned index, size_t count) |
| int | Find (size_t count, unsigned state) |
Public Attributes | |
| unsigned * | Bits |
| Pointer to array where bits are stored. | |
| size_t | Size |
| Number of bits in bit-vector. | |
|
||||||||||
|
Contructor taking a BitVectorBits object.
Definition at line 125 of file bitvector.h. |
|
||||||||||||
|
Contructor taking an arbitrary block of memory.
Definition at line 135 of file bitvector.h. |
|
|
Empty contructor. Definition at line 142 of file bitvector.h. |
|
|
Clear all bits. Definition at line 36 of file bitvector.cpp. |
|
|
Test a single bit.
Definition at line 46 of file bitvector.cpp. |
|
|
Set a single bit.
Definition at line 53 of file bitvector.cpp. |
|
|
Clear a single bit.
Definition at line 60 of file bitvector.cpp. |
|
||||||||||||
|
Test if a range of bits are all set.
Definition at line 299 of file bitvector.cpp. |
|
||||||||||||
|
Test if a range of bits are all clear.
Definition at line 328 of file bitvector.cpp. |
|
||||||||||||
|
Set a range of bits.
Definition at line 354 of file bitvector.cpp. |
|
||||||||||||
|
Clear a range of bits.
Definition at line 384 of file bitvector.cpp. |
|
||||||||||||
|
Find an region of consecutive bits of the specified state.
Definition at line 416 of file bitvector.cpp. |
1.4.4