ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::LZ77Phrase Struct Reference

a phrase of LZ77: copy length symbols from distance back, then next (none at the end of the text); distance is 0 when length is 0 More...

#include <ADS/compression/LempelZiv.h>

Public attributes

std::size_t distance
 how far back the copy starts
std::size_t length
 the symbols copied
std::optional< char > next
 the symbol after the copy, if any

Friends

bool operator== (const LZ77Phrase &a, const LZ77Phrase &b)=default
 whether the two phrases are equal

Detailed description

a phrase of LZ77: copy length symbols from distance back, then next (none at the end of the text); distance is 0 when length is 0

◆ operator==

bool operator== ( const LZ77Phrase & a,
const LZ77Phrase & b )
friend

whether the two phrases are equal

Member data documentation

◆ distance

std::size_t ADS::LZ77Phrase::distance

how far back the copy starts

◆ length

std::size_t ADS::LZ77Phrase::length

the symbols copied

◆ next

std::optional< char > ADS::LZ77Phrase::next

the symbol after the copy, if any


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