The iterator that allows modification of bits. More...
#include <bitvector.h>
Public Member Functions | |
iterator (const iterator &r) | |
int | operator!= (const const_iterator &rhs) const throw () |
Comparing two iterators. More... | |
int | operator!= (const iterator &rhs) const throw () |
bool | operator* () const |
Dereference the current bit. No error checking. | |
iterator & | operator++ () |
Increment the interator. Move on to the next bit. | |
iterator & | operator+= (int incr) |
iterator & | operator-- () |
Decrement the interator. Move back by one bit. | |
const iterator & | operator= (const iterator &r) |
const iterator & | operator= (int val) |
int | operator== (const const_iterator &rhs) const throw () |
int | operator== (const iterator &rhs) const throw () |
Friends | |
iterator | ibis::bitvector::begin () |
iterator | ibis::bitvector::end () |
The iterator that allows modification of bits.
It provides only one additional function (operator=) than const_iterator to allow modification of the bit pointed. ********************IMPORTANT******************** operator= modifies the content of the bitvector it points to and it can invalidate other iterators or const_iterators referring to the same bitvector.
|
inline |
Comparing two iterators.
It only compare the content of the iterator to m_vec.