107#include <string_view>
154 explicit FMIndex( std::string_view s , std::size_t b = 64 ,
155 std::size_t mu = 32 );
158 [[nodiscard]] std::size_t
size(
void )
const {
return( f_n ); }
182 [[nodiscard]] std::size_t
rank(
char c , std::size_t k )
const;
205 [[nodiscard]] std::pair< std::size_t , std::size_t >
218 [[nodiscard]] std::size_t
count( std::string_view P )
const;
241 [[nodiscard]] std::vector< std::size_t >
locate( std::string_view P )
const;
263 [[nodiscard]] std::string
extract( std::size_t i , std::size_t j )
const;
284 [[nodiscard]] std::size_t lf( std::size_t r )
const;
287 [[nodiscard]] std::size_t place( std::size_t r )
const;
290 [[nodiscard]]
bool marked( std::size_t r )
const {
return( f_mark[ r ] ); }
292 std::size_t f_n , f_b , f_mu;
294 std::size_t f_dollar;
295 std::array< std::size_t , 257 > f_C;
296 std::array< int , 256 > f_id;
297 std::size_t f_sigma = 0;
298 std::vector< std::uint32_t > f_occ;
300 std::vector< std::size_t > f_place;
301 std::vector< std::size_t > f_row;
313#include "ADS/compression/impl/FMIndex.tpp"
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,...
Rank and select on a static vector of bits of bits with 1s (chapter 15, Compressed Data Structures...
std::pair< std::size_t, std::size_t > range(std::string_view P) const
the range of the rows of prefixed by , empty if none, by backward search
std::vector< std::size_t > locate(std::string_view P) const
the places of the occurrences of , in increasing order
FMIndex(std::string_view s, std::size_t b=64, std::size_t mu=32)
the index of
std::string extract(std::size_t i, std::size_t j) const
the substring
void persist(A &a)
the members written to, or read from, the archive [see Persistence.h]
std::size_t sizeInBits(void) const
the bits of the index: , the counts, the marks with their directory, the samples and the arrays of th...
std::size_t size(void) const
the length of the text
Definition FMIndex.h:158
std::size_t count(std::string_view P) const
the number of the occurrences of
BWT transform(void) const
the transform of the text
std::size_t rank(char c, std::size_t k) const
the occurrences of in , the excluded
static constexpr std::string_view persistName
the name of the structure in a file [see Persistence.h]
Definition FMIndex.h:272
FMIndex(void)
the index of the empty text
Definition FMIndex.h:131
BasicRankSelect< false > RankSelect
the directory with its inventories of select built in the constructor, the fastest select
Definition RankSelect.h:556
the transform of Burrows and Wheeler: the last column of without the , and the row of the
Definition BurrowsWheeler.h:127