A bitset index with increment/decrement methods. More...
#include <libecc/bitset.h>


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. | |
A bitset index with increment/decrement methods.
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). |
| libecc::bitset_index_iterator< DIRECTION >::bitset_index_iterator | ( | void | ) | [inline] |
Construct an uninitialized iterator bitmask.
| libecc::bitset_index_iterator< DIRECTION >::bitset_index_iterator | ( | bitset_index_iterator< DIRECTION > const & | index | ) | [inline] |
Copy constructor.
| libecc::bitset_index_iterator< DIRECTION >::bitset_index_iterator | ( | int | bit | ) | [inline] |
| void libecc::bitset_index_iterator< DIRECTION >::decrement | ( | void | ) | [inline] |
Backup to the previous bit.
References libecc::bitset_index::left(), and libecc::bitset_index::right().
Referenced by libecc::bitset_iterator< N, DIRECTION >::operator--(), and libecc::bitset_iterator< N, DIRECTION >::operator-=().
| void libecc::bitset_index_iterator< DIRECTION >::decrement | ( | int | n | ) | [inline] |
Backup to the previous bit.
References libecc::bitset_index::left(), and libecc::bitset_index::right().
| void libecc::bitset_index_iterator< DIRECTION >::increment | ( | int | n | ) | [inline] |
Advance to the next bit.
References libecc::bitset_index::left(), and libecc::bitset_index::right().
| void libecc::bitset_index_iterator< DIRECTION >::increment | ( | void | ) | [inline] |
Advance to the next bit.
References libecc::bitset_index::left(), and libecc::bitset_index::right().
Referenced by libecc::bitset_iterator< N, DIRECTION >::operator++(), and libecc::bitset_iterator< N, DIRECTION >::operator+=().
| bool operator< | ( | bitset_index_iterator< DIRECTION > const & | i1, | |
| bitset_index_iterator< DIRECTION > const & | i2 | |||
| ) | [friend] |
Less.
| bool operator<= | ( | bitset_index_iterator< DIRECTION > const & | i1, | |
| bitset_index_iterator< DIRECTION > const & | i2 | |||
| ) | [friend] |
Less or equal.
| bool operator> | ( | bitset_index_iterator< DIRECTION > const & | i1, | |
| bitset_index_iterator< DIRECTION > const & | i2 | |||
| ) | [friend] |
Greater.
| bool operator>= | ( | bitset_index_iterator< DIRECTION > const & | i1, | |
| bitset_index_iterator< DIRECTION > const & | i2 | |||
| ) | [friend] |
Greater or equal.