ivutils
Loading...
Searching...
No Matches
index_pack< index_tt > Class Template Reference

this packer is optimized for packing integer sequences with the same increment. More...

#include <seqpack.h>

Public Types

typedef index_tt index_t
 number of packed integers
 

Public Member Functions

template<class int_it >
index_t next_group (int_it beg, index_t n=1)
 put a group of n elements starting with beg
 
std::size_t packed_size () const
 returns size in bytes ignoring vector overheads
 
std::size_t data_size () const
 returns full unpacked sequence size in bytes
 

Detailed Description

template<class index_tt = std::ptrdiff_t>
class index_pack< index_tt >

this packer is optimized for packing integer sequences with the same increment.

for example, if this increment is zero, then sequence 2 2 2 2 3 3 3 3 will be effectively packed (there are more than one 2 and 3 which follows each other).


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