SDSL
3.0.0
Succinct Data Structure Library
|
This file contains classes which could be used to encode and decode integer vectors when they are written to disk. More...
#include <iostream>
#include <sdsl/coder.hpp>
#include <sdsl/int_vector.hpp>
#include <sdsl/util.hpp>
Go to the source code of this file.
Namespaces | |
sdsl | |
Namespace for the succinct data structure library. | |
This file contains classes which could be used to encode and decode integer vectors when they are written to disk.
So far we two coders: int_vector_(load/serialize)_wrapper is just a dummy class which does not change the writing and reading process int_vector_(load/serialize)_vbyte_wrapper encodes and decodes each element using vbyte (aka escaping) coding. int_vector_(load/serialize)_vlen_wrapper encodes and decodes each element using a variable length code (e.g. Delta/Gamma/Fibonacci code)
TODO: more sophisticated coders which have in contrast to the implemented version an internal state after the initialization. Like a Huffman coder which calculates the Huffman tree at initialization.
Definition in file int_vector_io_wrappers.hpp.