BitMagic-C++
|
Back insert iterator implements buffered insert, faster than generic access assignment. More...
#include <bmstrsparsevec.h>
Public Types | |
typedef std::output_iterator_tag | iterator_category |
typedef str_sparse_vector< CharType, BV, MAX_STR_SIZE > | str_sparse_vector_type |
typedef str_sparse_vector_type * | str_sparse_vector_type_ptr |
typedef str_sparse_vector_type::value_type | value_type |
typedef str_sparse_vector_type::size_type | size_type |
typedef str_sparse_vector_type::bvector_type | bvector_type |
typedef bvector_type::allocator_type | allocator_type |
typedef allocator_type::allocator_pool_type | allocator_pool_type |
typedef void | difference_type |
typedef void | pointer |
typedef void | reference |
Public Member Functions | |
back_insert_iterator () BMNOEXCEPT | |
back_insert_iterator (str_sparse_vector_type *sv) BMNOEXCEPT | |
back_insert_iterator (const back_insert_iterator &bi) BMNOEXCEPT | |
back_insert_iterator & | operator= (const back_insert_iterator &bi) |
~back_insert_iterator () | |
back_insert_iterator & | operator= (const value_type *v) |
push value to the vector More... | |
template<typename StrType > | |
back_insert_iterator & | operator= (const StrType &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 (const value_type *v) |
add value to the container More... | |
void | add_null () |
add NULL (no-value) to the container More... | |
void | add_null (size_type count) |
add a series of consequitve NULLs (no-value) to the container More... | |
bool | empty () const BMNOEXCEPT |
return true if insertion buffer is empty More... | |
void | flush () |
flush the accumulated buffer More... | |
Protected Types | |
typedef bvector_type::block_idx_type | block_idx_type |
Protected Member Functions | |
size_type | add_value (const value_type *v) |
add value to the buffer without changing the NULL vector More... | |
Back insert iterator implements buffered insert, faster than generic access assignment.
Limitations for buffered inserter:
Definition at line 264 of file bmstrsparsevec.h.
typedef allocator_type::allocator_pool_type bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::allocator_pool_type |
Definition at line 276 of file bmstrsparsevec.h.
typedef bvector_type::allocator_type bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::allocator_type |
Definition at line 275 of file bmstrsparsevec.h.
|
protected |
Definition at line 330 of file bmstrsparsevec.h.
typedef str_sparse_vector_type::bvector_type bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::bvector_type |
Definition at line 274 of file bmstrsparsevec.h.
typedef void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::difference_type |
Definition at line 278 of file bmstrsparsevec.h.
typedef std::output_iterator_tag bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::iterator_category |
Definition at line 268 of file bmstrsparsevec.h.
typedef void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::pointer |
Definition at line 279 of file bmstrsparsevec.h.
typedef void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::reference |
Definition at line 280 of file bmstrsparsevec.h.
typedef str_sparse_vector_type::size_type bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::size_type |
Definition at line 273 of file bmstrsparsevec.h.
typedef str_sparse_vector<CharType, BV, MAX_STR_SIZE> bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::str_sparse_vector_type |
Definition at line 270 of file bmstrsparsevec.h.
typedef str_sparse_vector_type* bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::str_sparse_vector_type_ptr |
Definition at line 271 of file bmstrsparsevec.h.
typedef str_sparse_vector_type::value_type bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::value_type |
Definition at line 272 of file bmstrsparsevec.h.
bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::back_insert_iterator | ( | ) |
Definition at line 1842 of file bmstrsparsevec.h.
bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::back_insert_iterator | ( | str_sparse_vector_type * | sv | ) |
Definition at line 1849 of file bmstrsparsevec.h.
References bm::set_block_shift.
bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::back_insert_iterator | ( | const back_insert_iterator & | bi | ) |
bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::~back_insert_iterator | ( | ) |
Definition at line 1877 of file bmstrsparsevec.h.
void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::add | ( | const value_type * | v | ) |
add value to the container
Definition at line 1914 of file bmstrsparsevec.h.
void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::add_null | ( | ) |
add NULL (no-value) to the container
Definition at line 1933 of file bmstrsparsevec.h.
Referenced by main().
void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::add_null | ( | size_type | count | ) |
add a series of consequitve NULLs (no-value) to the container
|
protected |
add value to the buffer without changing the NULL vector
v | - value to push back |
Definition at line 1953 of file bmstrsparsevec.h.
References BM_ASSERT.
bool bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::empty | ( | ) | const |
return true if insertion buffer is empty
Definition at line 1886 of file bmstrsparsevec.h.
void bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::back_insert_iterator::flush | ( | ) |
flush the accumulated buffer
Definition at line 1895 of file bmstrsparsevec.h.
References bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::empty(), and bm::set_block_shift.
Referenced by main().
|
inline |
noop
Definition at line 309 of file bmstrsparsevec.h.
|
inline |
noop
Definition at line 311 of file bmstrsparsevec.h.
|
inline |
noop
Definition at line 313 of file bmstrsparsevec.h.
|
inline |
Definition at line 287 of file bmstrsparsevec.h.
References BM_ASSERT.
|
inline |
push value to the vector
Definition at line 303 of file bmstrsparsevec.h.
|
inline |
push value to the vector
Definition at line 297 of file bmstrsparsevec.h.