BitMagic-C++
|
Example: str_sparse_vector<> gather deserialization example. More...
#include <iostream>
#include <string>
#include <vector>
#include <assert.h>
#include "bm.h"
#include "bmstrsparsevec.h"
#include "bmsparsevec_serial.h"
Go to the source code of this file.
Typedefs | |
typedef bm::str_sparse_vector< char, bvector_type, 5 > | str_sv_type |
Functions | |
int | main (void) |
Example: str_sparse_vector<> gather deserialization example.
This example loads a range of a sparse vector from an STL container to save memory and improve deserialization performance
Definition in file strsvsample05.cpp.
typedef bm::str_sparse_vector<char, bvector_type, 5> str_sv_type |
Definition at line 51 of file strsvsample05.cpp.
int main | ( | void | ) |
Definition at line 56 of file strsvsample05.cpp.
References BM_DECLARE_TEMP_BLOCK, bm::sparse_vector_serial_layout< SV >::buf(), bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::calc_stat(), bm::sparse_vector_deserializer< SV >::deserialize(), bm::sparse_vector_deserializer< SV >::deserialize_range(), bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::get(), bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::get_back_inserter(), bm::bv_statistics::memory_used, bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::optimize(), bm::str_sparse_vector< CharType, BV, MAX_STR_SIZE >::remap_from(), bm::sparse_vector_serializer< SV >::serialize(), bm::sparse_vector_serializer< SV >::set_bookmarks(), bm::bvector< Alloc >::set_range(), and bm::sparse_vector_serial_layout< SV >::size().