|
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 () BMNOEXCEPT | |
| back_insert_iterator (rsc_sparse_vector_type *csv) BMNOEXCEPT | |
| back_insert_iterator & | operator= (const back_insert_iterator &bi) |
| ~back_insert_iterator () | |
| 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... | |
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 229 of file bmsparsevec_compr.h.
| typedef rsc_sparse_vector_type::bvector_type bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::bvector_type |
Definition at line 239 of file bmsparsevec_compr.h.
| typedef void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::difference_type |
Definition at line 241 of file bmsparsevec_compr.h.
| typedef std::output_iterator_tag bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::iterator_category |
Definition at line 233 of file bmsparsevec_compr.h.
| typedef void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::pointer |
Definition at line 242 of file bmsparsevec_compr.h.
| typedef void bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::reference |
Definition at line 243 of file bmsparsevec_compr.h.
| typedef rsc_sparse_vector<Val, SV> bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::rsc_sparse_vector_type |
Definition at line 235 of file bmsparsevec_compr.h.
| typedef rsc_sparse_vector_type* bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::rsc_sparse_vector_type_ptr |
Definition at line 236 of file bmsparsevec_compr.h.
| typedef rsc_sparse_vector_type::size_type bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::size_type |
Definition at line 238 of file bmsparsevec_compr.h.
|
protected |
Definition at line 290 of file bmsparsevec_compr.h.
|
protected |
add value to the buffer without changing the NULL vector
| v | - value to push back |
Definition at line 288 of file bmsparsevec_compr.h.
| typedef rsc_sparse_vector_type::value_type bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::value_type |
Definition at line 237 of file bmsparsevec_compr.h.
| bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::back_insert_iterator |
Definition at line 1327 of file bmsparsevec_compr.h.
Referenced by bm::rsc_sparse_vector< Val, SV >::get_back_inserter().
| bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::back_insert_iterator | ( | rsc_sparse_vector_type * | csv | ) |
Definition at line 1336 of file bmsparsevec_compr.h.
| bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::~back_insert_iterator |
Definition at line 1346 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 1354 of file bmsparsevec_compr.h.
References BM_ASSERT.
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 1370 of file bmsparsevec_compr.h.
References BM_ASSERT.
Referenced by main().
| 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 1391 of file bmsparsevec_compr.h.
Referenced by bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::operator=().
|
inline |
noop
Definition at line 262 of file bmsparsevec_compr.h.
|
inline |
noop
Definition at line 264 of file bmsparsevec_compr.h.
|
inline |
noop
Definition at line 266 of file bmsparsevec_compr.h.
|
inline |
Definition at line 249 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 259 of file bmsparsevec_compr.h.
References bm::rsc_sparse_vector< Val, SV >::back_insert_iterator::add().
1.8.17