107#include <string_view>
166 [[nodiscard]] std::size_t
size(
void )
const {
return( f_n ); }
169 [[nodiscard]] std::size_t
runs(
void )
const {
return( f_start.size() ); }
197 [[nodiscard]] std::pair< std::size_t , std::size_t >
210 [[nodiscard]] std::size_t
count( std::string_view P )
const;
245 [[nodiscard]] std::vector< std::size_t >
locate( std::string_view P )
const;
264 [[nodiscard]] std::size_t rank( std::uint32_t c , std::size_t i )
const;
268 [[nodiscard]] std::size_t phi( std::size_t x )
const;
271 [[nodiscard]]
static std::size_t get(
const BitVector & v ,
int w ,
273 return( std::size_t( v.
get( i * std::size_t( w ) , w ) ) );
281 std::array< std::size_t , 258 > f_R{};
282 std::array< std::size_t , 258 > f_C{};
287#if ADS_CONTRACTS >= 3
301#include "ADS/compression/impl/RIndex.tpp"
The vector of bits on which the succinct structures and the integer codes of ADS are built: the bits ...
The transform of Burrows and Wheeler and the compressor built on it (chapter 14, Block-Sorting Compre...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The Elias-Fano representation of a non-decreasing sequence of integers in (chapters 11,...
The wavelet tree shaped by the code of Huffman of Mäkinen and Navarro: a sequence of symbols of in ...
a vector of bits packed in words of 64 bits
Definition BitVector.h:479
Word get(std::size_t i, int len) const
the bits from the place , the bit in the bit 0 of the result
a static sequence of symbols in about bits each, with access, rank and select in time proportional t...
Definition HuffmanWaveletTree.h:112
std::size_t size(void) const
the length of the text
Definition RIndex.h:166
static constexpr std::string_view persistName
the name of the structure in a file [see Persistence.h]
Definition RIndex.h:254
RIndex(void)
the index of the empty text
Definition RIndex.h:130
std::pair< std::size_t, std::size_t > range(std::string_view P) const
the range of the rows prefixed by , empty if none
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
std::vector< std::size_t > locate(std::string_view P) const
the places of the occurrences of , in increasing order
RIndex(std::string_view s)
the index of
std::size_t sizeInBits(void) const
the bits of the index: the runs, their heads, the sums of their lengths, the samples and the function
std::size_t runs(void) const
the number of the runs of the transform
Definition RIndex.h:169
std::size_t count(std::string_view P) const
the number of the occurrences of
BasicEliasFano< false > EliasFano
Elias-Fano with the inventories of built in the constructor, the fastest access() and nextGEQ().
Definition EliasFano.h:291