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

a phrase of the parsing of Ziv and Lempel: copy length symbols from distance places back, then append next, if any More...

#include <ADS/string/SuffixApplications.h>

Public attributes

std::size_t distance = 0
 how far back the copy starts
std::size_t length = 0
 the symbols copied
std::optional< char > next
 the symbol after the copy, none at the end

Friends

bool operator== (const CopyPhrase &, const CopyPhrase &)=default
 the phrases are equal field by field

Detailed description

a phrase of the parsing of Ziv and Lempel: copy length symbols from distance places back, then append next, if any

◆ operator==

bool operator== ( const CopyPhrase & ,
const CopyPhrase &  )
friend

the phrases are equal field by field

Member data documentation

◆ distance

std::size_t ADS::CopyPhrase::distance = 0

how far back the copy starts

◆ length

std::size_t ADS::CopyPhrase::length = 0

the symbols copied

◆ next

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

the symbol after the copy, none at the end


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