BitMagic-C++
|
Output iterator iterator designed to set "ON" bits based on input sequence of integers (bit indeces). More...
#include <bm.h>
Public Types | |
typedef std::output_iterator_tag | iterator_category |
typedef bm::bvector< Alloc > | bvector_type |
typedef size_type | value_type |
typedef void | difference_type |
typedef void | pointer |
typedef void | reference |
Public Member Functions | |
insert_iterator () BMNOEXCEPT | |
insert_iterator (bvector< Alloc > &bvect) BMNOEXCEPT | |
More... | |
insert_iterator (const insert_iterator &iit) | |
insert_iterator & | operator= (const insert_iterator &ii) |
More... | |
insert_iterator & | operator= (size_type n) |
More... | |
insert_iterator & | operator* () |
More... | |
insert_iterator & | operator++ () |
More... | |
insert_iterator & | operator++ (int) |
More... | |
bvector_type * | get_bvector () const |
More... | |
Protected Attributes | |
bvector_type * | bvect_ |
More... | |
size_type | max_bit_ |
More... | |
Friends | |
class | bulk_insert_iterator |
Output iterator iterator designed to set "ON" bits based on input sequence of integers (bit indeces).
STL container can be converted to bvector using this iterator Insert iterator guarantees the vector will be dynamically resized (set_bit does not do that).
|
inline |
Definition at line 438 of file bm.h.
References bm::bvector< Alloc >::insert_iterator::bvect_.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 408 of file bm.h.
References bm::bvector< Alloc >::insert_iterator::bvect_, and bm::bvector< Alloc >::insert_iterator::max_bit_.
|
inline |
Definition at line 414 of file bm.h.
References BM_ASSERT, BM_ASSERT_THROW, bm::bvector< Alloc >::insert_iterator::bvect_, bm::id_max, bm::bvector< Alloc >::insert_iterator::max_bit_, bm::bvector< Alloc >::resize(), bm::bvector< Alloc >::set_bit_no_check(), and bm::bvector< Alloc >::size().