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

a phrase of LZSS: a copy of length symbols from distance back, or the literal when distance is 0 More...

#include <ADS/compression/LempelZiv.h>

Public attributes

std::size_t distance
 how far back the copy starts, 0 for a literal
std::size_t length
 the symbols copied, 1 for a literal
char literal
 the symbol of a literal

Friends

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

Detailed description

a phrase of LZSS: a copy of length symbols from distance back, or the literal when distance is 0

◆ operator==

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

whether the two phrases are equal

Member data documentation

◆ distance

std::size_t ADS::LZSSPhrase::distance

how far back the copy starts, 0 for a literal

◆ length

std::size_t ADS::LZSSPhrase::length

the symbols copied, 1 for a literal

◆ literal

char ADS::LZSSPhrase::literal

the symbol of a literal


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