dlvhex
2.5.0
|
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 <vs10/bm/bm.h>
Public Types | |
typedef std::input_iterator_tag | iterator_category |
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 . | |
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 . | |
Private Attributes | |
bm::id_t | bit_count_ |
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.
typedef std::input_iterator_tag bm::bvector< Alloc >::counted_enumerator::iterator_category |
Reimplemented from bm::bvector< Alloc >::enumerator.
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 >::counted_enumerator::bit_count_, and bm::bvector< Alloc >::iterator_base::valid().
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 >::counted_enumerator::bit_count_, and bm::bvector< Alloc >::iterator_base::valid().
bm::id_t bm::bvector< Alloc >::counted_enumerator::count | ( | ) | const [inline] |
Number of bits ON starting from the .
Method returns number of ON bits fromn the bit 0 to the current bit For the first bit in bitvector it is 1, for the second 2
Definition at line 777 of file bm.h.
References bm::bvector< Alloc >::counted_enumerator::bit_count_.
bm::id_t bm::bvector< Alloc >::counted_enumerator::count | ( | ) | const [inline] |
Number of bits ON starting from the .
Method returns number of ON bits fromn the bit 0 to the current bit For the first bit in bitvector it is 1, for the second 2
Definition at line 777 of file bm.h.
References bm::bvector< Alloc >::counted_enumerator::bit_count_.
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 >::counted_enumerator::bit_count_, 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 >::counted_enumerator::bit_count_, bm::bvector< Alloc >::enumerator::go_up(), and bm::bvector< Alloc >::iterator_base::valid().
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 >::counted_enumerator::bit_count_, bm::bvector< Alloc >::enumerator::go_up(), and bm::bvector< Alloc >::iterator_base::valid().
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 >::counted_enumerator::bit_count_, 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 >::counted_enumerator::bit_count_, 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 >::counted_enumerator::bit_count_, and bm::bvector< Alloc >::iterator_base::valid().
bm::id_t bm::bvector< Alloc >::counted_enumerator::bit_count_ [private] |