56#ifndef __ADS_TwoLevelDictionary
57 #define __ADS_TwoLevelDictionary
117 [[nodiscard]] std::size_t
prefixEnd( std::string_view P )
const;
129 [[nodiscard]] std::pair< std::size_t , std::size_t >
134 [[nodiscard]] std::string
access( std::size_t i )
const;
137 [[nodiscard]] std::size_t
size(
void )
const;
176 [[nodiscard]]
static std::vector< std::string >
192#include "ADS/dictionary/impl/TwoLevelDictionary.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The front coding of a sorted dictionary of strings, beyond the book: adjacent strings share a prefix,...
The Patricia trie with the blind search of Ferragina and Grossi, beyond the book: the compacted trie ...
a constant view of the strings in their order, decoded one after the other, forward; *it is the strin...
Definition FrontCoding.h:365
a sorted dictionary of strings in the front coding, with anchors
Definition FrontCoding.h:202
a sorted dictionary of strings on a Patricia trie, with the blind search
Definition PatriciaTrie.h:104
TwoLevelDictionary(FrontCodedDictionary F)
the trie on the anchors of the coding
std::size_t size_type
the type of the sizes
Definition TwoLevelDictionary.h:152
const_iterator iterator
the iterator on the items
Definition TwoLevelDictionary.h:162
std::string access(std::size_t i) const
the string , decoded from its bucket
const_iterator cend(void) const
the constant iterator past the last item
Definition TwoLevelDictionary.h:171
std::ptrdiff_t difference_type
the type of the distances between two iterators
Definition TwoLevelDictionary.h:154
const std::string & reference
a reference to an item
Definition TwoLevelDictionary.h:156
std::size_t lexicographicPosition(std::string_view Q) const
the number of strings smaller than
std::size_t size(void) const
the number of strings
std::string value_type
the type of the items, for the standard library
Definition TwoLevelDictionary.h:150
std::pair< std::size_t, std::size_t > prefixRange(std::string_view P) const
the range of the strings prefixed by
const_iterator cbegin(void) const
the constant iterator on the first item
Definition TwoLevelDictionary.h:169
const_iterator end(void) const
the iterator past the last item
Definition TwoLevelDictionary.h:167
const FrontCodedDictionary & lower(void) const
the lower level, the front coding of the strings
const_iterator begin(void) const
the iterator on the first item
Definition TwoLevelDictionary.h:165
const std::string & const_reference
a constant reference to an item
Definition TwoLevelDictionary.h:158
std::size_t prefixEnd(std::string_view P) const
the number of strings smaller than , larger than every character, i.e., of the strings smaller than ...
FrontCodedDictionary::const_iterator const_iterator
the iterator on the items, constant
Definition TwoLevelDictionary.h:160
const PatriciaTrie & upper(void) const
the upper level, the trie on the anchors