Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Suffix automaton string index. Automaton representation of all suffixes. The automaton is general deterministic automaton. The class does not checks whether the automaton actually is a suffix automaton. The index alphabet is stored within the automaton. More...
#include <SuffixAutomaton.h>
Public Member Functions | |
SuffixAutomaton (automaton::DFA< SymbolType, unsigned > automaton, unsigned backboneLength) | |
const automaton::DFA< SymbolType, unsigned > & | getAutomaton () const & |
automaton::DFA< SymbolType, unsigned > && | getAutomaton () && |
const ext::set< SymbolType > & | getAlphabet () const & |
ext::set< SymbolType > && | getAlphabet () && |
bool | removeSymbolFromAlphabet (const SymbolType &symbol) |
unsigned | getBackboneLength () const |
auto | operator<=> (const SuffixAutomaton &other) const |
bool | operator== (const SuffixAutomaton &other) const |
operator automaton::DFA< SymbolType, unsigned > () const | |
Friends | |
ext::ostream & | operator<< (ext::ostream &out, const SuffixAutomaton &instance) |
Suffix automaton string index. Automaton representation of all suffixes. The automaton is general deterministic automaton. The class does not checks whether the automaton actually is a suffix automaton. The index alphabet is stored within the automaton.
SymbolType | type of symbols of indexed string |
|
explicit |
Creates a new instance of the index with concrete suffix automaton and backbone length.
automaton | the suffix automaton representing the index |
backbone | the length of the indexed string or the longest path in the automaton. |
|
inline |
Getter of the alphabet of the indexed string.
|
inline |
Getter of the alphabet of the indexed string.
automaton::DFA< SymbolType, unsigned > && indexes::stringology::SuffixAutomaton< SymbolType >::getAutomaton | ( | ) | && |
Getter of the underlying suffix automaton.
const automaton::DFA< SymbolType, unsigned > & indexes::stringology::SuffixAutomaton< SymbolType >::getAutomaton | ( | ) | const & |
Getter of the underlying suffix automaton.
|
inline |
Getter of the backbone length.
|
explicit |
Cast operator to the raw automaton.
|
inline |
The three way comparison implementation
other | the other instance |
other
.
|
inline |
The equality comparison implementation.
other | the other object to compare with. |
|
inline |
Remover of a symbol from the alphabet.
symbol | a symbol to remove. |
|
friend |
Print this object as raw representation to ostream.
out | ostream where to print |
instance | object to print |