BitMagic-C++
|
Back insert iterator implements buffered insert, faster than generic access assignment. More...
#include <bmsparsevec_compr.h>
Public Types | |
typedef std::output_iterator_tag | iterator_category |
typedef rsc_sparse_vector< Val, SV > | rsc_sparse_vector_type |
typedef rsc_sparse_vector_type * | rsc_sparse_vector_type_ptr |
typedef rsc_sparse_vector_type::value_type | value_type |
typedef rsc_sparse_vector_type::size_type | size_type |
typedef rsc_sparse_vector_type::bvector_type | bvector_type |
typedef void | difference_type |
typedef void | pointer |
typedef void | reference |
Public Member Functions | |
back_insert_iterator & | operator= (value_type v) |
push value to the vector More... | |
back_insert_iterator & | operator* () |
noop More... | |
back_insert_iterator & | operator++ () |
noop More... | |
back_insert_iterator & | operator++ (int) |
noop More... | |
void | add (value_type v) |
add value to the container More... | |
void | add_null () BMNOEXCEPT |
add NULL (no-value) to the container More... | |
void | add_null (size_type count) BMNOEXCEPT |
add a series of consequitve NULLs (no-value) to the container More... | |
void | flush () |
flush the accumulated buffer More... | |
Construction and assignment <br> | |
back_insert_iterator () BMNOEXCEPT | |
More... | |
back_insert_iterator (rsc_sparse_vector_type *csv) | |
back_insert_iterator (const back_insert_iterator &bi) | |
void | operator= (const back_insert_iterator &bi) |
More... | |
~back_insert_iterator () | |
Protected Types | |
typedef rsc_sparse_vector_type::sparse_vector_type | sparse_vector_type |
add value to the buffer without changing the NULL vector More... | |
typedef sparse_vector_type::back_insert_iterator | sparse_vector_bi |
Back insert iterator implements buffered insert, faster than generic access assignment.
Limitations for buffered inserter:
Definition at line 231 of file bmsparsevec_compr.h.
|
protected |
add value to the buffer without changing the NULL vector
v | - value to push back |
Definition at line 295 of file bmsparsevec_compr.h.
void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add | ( | value_type | v | ) |
add value to the container
Definition at line 2009 of file bmsparsevec_compr.h.
References BM_ASSERT, and bm::id_max.
Referenced by bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::operator=().
void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add_null |
add NULL (no-value) to the container
Definition at line 2027 of file bmsparsevec_compr.h.
References BM_ASSERT, and bm::id_max.
void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add_null | ( | size_type | count | ) |
add a series of consequitve NULLs (no-value) to the container
void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::flush |
flush the accumulated buffer
Definition at line 2051 of file bmsparsevec_compr.h.
Referenced by bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::operator=().
|
inline |
noop
Definition at line 269 of file bmsparsevec_compr.h.
|
inline |
noop
Definition at line 271 of file bmsparsevec_compr.h.
|
inline |
noop
Definition at line 273 of file bmsparsevec_compr.h.
|
inline |
Definition at line 256 of file bmsparsevec_compr.h.
References BM_ASSERT, and bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::flush().
|
inline |
push value to the vector
Definition at line 266 of file bmsparsevec_compr.h.
References bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add().