BitMagic-C++
|
Example: bvector<> serialization/deserialization. More...
Go to the source code of this file.
Functions | |
static void | fill_bvector (bm::bvector<> *bv) |
static void | print_statistics (const bm::bvector<> &bv) |
static unsigned char * | serialize_bvector (bm::serializer< bm::bvector<> > &bvs, bm::bvector<> &bv) |
int | main (void) |
Variables | |
const unsigned | MAX_VALUE = 1000000 |
Example: bvector<> serialization/deserialization.
Definition in file sample4.cpp.
|
static |
Definition at line 49 of file sample4.cpp.
References MAX_VALUE, and bm::bvector< Alloc >::set_bit().
Referenced by main().
int main | ( | void | ) |
Definition at line 102 of file sample4.cpp.
References bm::bvector< Alloc >::bit_or(), bm::BM_GAP, bm::serializer< BV >::byte_order_serialization(), bm::bvector< Alloc >::compare(), bm::deserialize(), fill_bvector(), bm::serializer< BV >::gap_length_serialization(), bm::bvector< Alloc >::optimize(), bm::serializer< BV >::optimize_serialize_destroy(), print_statistics(), bm::serializer< BV >::serialize(), serialize_bvector(), and bm::bvector< Alloc >::set_new_blocks_strat().
|
static |
Definition at line 61 of file sample4.cpp.
References bm::bv_statistics::bit_blocks, bm::bvector< Alloc >::calc_stat(), bm::bvector< Alloc >::count(), bm::bv_statistics::gap_blocks, bm::bv_statistics::max_serialize_mem, and bm::bv_statistics::memory_used.
Referenced by main().
|
static |
Definition at line 76 of file sample4.cpp.
References bm::bv_statistics::bit_blocks, BM_DECLARE_TEMP_BLOCK, bm::bvector< Alloc >::count(), bm::bv_statistics::gap_blocks, bm::bv_statistics::max_serialize_mem, bm::bv_statistics::memory_used, and bm::bvector< Alloc >::optimize().
Referenced by main().
const unsigned MAX_VALUE = 1000000 |
Definition at line 42 of file sample4.cpp.
Referenced by fill_bvector().