Constant input iterator designed to enumerate "ON" bits counted_enumerator keeps bitcount, ie number of ON bits starting from the position 0 in the bit string up to the currently enumerated bit. More...
#include <bm.h>
Public Types | |
typedef std::input_iterator_tag | iterator_category |
Public Member Functions | |
counted_enumerator () | |
counted_enumerator (const enumerator &en) | |
counted_enumerator & | operator= (const enumerator &en) |
counted_enumerator & | operator++ () |
counted_enumerator | operator++ (int) |
bm::id_t | count () const |
Number of bits ON starting from the . |
Constant input iterator designed to enumerate "ON" bits counted_enumerator keeps bitcount, ie number of ON bits starting from the position 0 in the bit string up to the currently enumerated bit.
When increment operator called current position is increased by 1.
Definition at line 731 of file bm.h.
typedef std::input_iterator_tag bm::bvector< Alloc >::counted_enumerator::iterator_category |
Reimplemented from bm::bvector< Alloc >::enumerator.
bm::bvector< Alloc >::counted_enumerator::counted_enumerator | ( | ) | [inline] |
bm::bvector< Alloc >::counted_enumerator::counted_enumerator | ( | const enumerator & | en | ) | [inline] |
Definition at line 739 of file bm.h.
References bm::bvector< Alloc >::iterator_base::valid().
bm::id_t bm::bvector< Alloc >::counted_enumerator::count | ( | ) | const [inline] |
counted_enumerator bm::bvector< Alloc >::counted_enumerator::operator++ | ( | int | ) | [inline] |
Reimplemented from bm::bvector< Alloc >::enumerator.
Definition at line 763 of file bm.h.
References bm::bvector< Alloc >::enumerator::go_up(), and bm::bvector< Alloc >::iterator_base::valid().
counted_enumerator& bm::bvector< Alloc >::counted_enumerator::operator++ | ( | ) | [inline] |
Reimplemented from bm::bvector< Alloc >::enumerator.
Definition at line 755 of file bm.h.
References bm::bvector< Alloc >::enumerator::go_up(), and bm::bvector< Alloc >::iterator_base::valid().
counted_enumerator& bm::bvector< Alloc >::counted_enumerator::operator= | ( | const enumerator & | en | ) | [inline] |
Definition at line 746 of file bm.h.
References bm::bvector< Alloc >::iterator_base::valid().