ivutils
Loading...
Searching...
No Matches
iter_data_pack< packed_it, T, packer_t, pair_tt > Class Template Reference

Class for packing iterator together with some packed data. More...

#include <seqpack.h>

Inheritance diagram for iter_data_pack< packed_it, T, packer_t, pair_tt >:
Collaboration diagram for iter_data_pack< packed_it, T, packer_t, pair_tt >:

Public Member Functions

 iter_data_pack (packed_it beg, packer_t *sp=new packer_t())
 constructor with possible packer construction specification
 
- Public Member Functions inherited from pair_pack< T1, T2, packer_t1, packer_t2, pair_tt, index_t >
 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
 

Detailed Description

template<class packed_it, class T, class packer_t = data_pack<T>, class pair_tt = std::pair<packed_it, typename packer_t::value_t>>
class iter_data_pack< packed_it, T, packer_t, pair_tt >

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


The documentation for this class was generated from the following file: