ivutils
|
Class for packing iterator together with some packed data. More...
#include <seqpack.h>
Public Member Functions | |
iter_data_pack (packed_it beg, packer_t *sp=new packer_t()) | |
constructor with possible packer construction specification | |
![]() | |
pair_pack (packer_t1 *sp1=new packer_t1(), packer_t2 *sp2=new packer_t2()) | |
constructor with possible packer construction specification | |
template<class rec_it > | |
index_t | next_group (rec_it beg, index_t n=1) |
put a group of n elements starting with beg | |
std::size_t | packed_size () const |
returns the size in bytes ignoring vector overheads | |
std::size_t | data_size () const |
returns full unpacked sequence size in bytes | |
Class for packing iterator together with some packed data.
The iterator and data are packed by different packers but recovered simultaneously by an iterator. By default the return type is pair<it,value>, recording by reference is not possible