#include <libecc/bitset.h>
Inheritance diagram for libecc::bitset_index_iterator< DIRECTION >:
Public Member Functions | |
void | increment (void) |
Advance to the next bit. | |
void | decrement (void) |
Backup to the previous bit. | |
void | increment (int n) |
Advance to the next bit. | |
void | decrement (int n) |
Backup to the previous bit. | |
bitset_index_iterator (void) | |
Construct an uninitialized iterator bitmask. | |
bitset_index_iterator (bitset_index_iterator const &index) | |
Copy constructor. | |
bitset_index_iterator (int bit) | |
Construct an iterator bitmask that points to bit number bit. | |
Friends | |
bool | operator< (bitset_index_iterator const &i1, bitset_index_iterator const &i2) |
Less. | |
bool | operator> (bitset_index_iterator const &i1, bitset_index_iterator const &i2) |
Greater. | |
bool | operator<= (bitset_index_iterator const &i1, bitset_index_iterator const &i2) |
Less or equal. | |
bool | operator>= (bitset_index_iterator const &i1, bitset_index_iterator const &i2) |
Greater or equal. |
This class is a direction oriented bitset_index with methods to advance and backup the index in a bitset.
DIRECTION | Either libecc::forwards_iterating (normal iterator) or libecc::backwards_iterating (reverse iterator). |
|
Construct an uninitialized iterator bitmask.
|
|
Copy constructor.
|
|
Construct an iterator bitmask that points to bit number bit. bit may be -1 (one before the start) which is equivalent with rend() or --begin() . |
|
Backup to the previous bit.
|
|
Backup to the previous bit.
|
|
Advance to the next bit.
|
|
Advance to the next bit.
|
|
Less.
|
|
Less or equal.
|
|
Greater.
|
|
Greater or equal.
|