ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches

The persistent structures of ADS in the archives of cereal (https://uscilab.github.io/cereal/), beside the format of ADS. More...

Files

file  ADS/interop/cereal/Cereal.h
 The persistent structures of ADS [see Persistence.h] in the archives of cereal (https://uscilab.github.io/cereal/), beside the format of ADS: a program that includes this header writes a RankSelect, a WaveletMatrix or a BinaryFuseFilter with ar( x ) into its own archives, binary, portable binary, JSON or XML, next to its other data, and reads it back in the same way.

Functions

template<class Ar, Persistent T>
void ADS::save (Ar &a, const T &x)
 the structure \( x \) written to the archive \( a \) of cereal
template<class Ar, Persistent T>
void ADS::load (Ar &a, T &x)
 the structure \( x \) read from the archive \( a \) of cereal
template<class Ar>
void ADS::save (Ar &a, const BitVector &b)
 the bits \( b \) written to the archive \( a \) of cereal, as sdsl-lite writes a bit_vector
template<class Ar>
void ADS::load (Ar &a, BitVector &b)
 the bits \( b \) read from the archive \( a \) of cereal, as sdsl-lite writes a bit_vector

Detailed description

The persistent structures of ADS in the archives of cereal (https://uscilab.github.io/cereal/), beside the format of ADS.

Function documentation

◆ load() [1/2]

template<class Ar>
void ADS::load ( Ar & a,
BitVector & b )

the bits \( b \) read from the archive \( a \) of cereal, as sdsl-lite writes a bit_vector

Exceptions
PersistErrorif they are not a vector of bits

◆ load() [2/2]

template<class Ar, Persistent T>
void ADS::load ( Ar & a,
T & x )

the structure \( x \) read from the archive \( a \) of cereal

Exceptions
PersistErrorif the members break an invariant of \( T \)

◆ save() [1/2]

template<class Ar>
void ADS::save ( Ar & a,
const BitVector & b )

the bits \( b \) written to the archive \( a \) of cereal, as sdsl-lite writes a bit_vector

◆ save() [2/2]

template<class Ar, Persistent T>
void ADS::save ( Ar & a,
const T & x )

the structure \( x \) written to the archive \( a \) of cereal