8#ifndef INCLUDED_SDSL_CONSTRUCT_ISA
9#define INCLUDED_SDSL_CONSTRUCT_ISA
27 if (!sa_buf.
is_open()) {
throw std::ios_base::failure(
"cst_construct: Cannot load SA from file system!"); }
29 for (
size_type i = 0; i < isa.
size(); ++i) { isa[sa_buf[i]] = i; }
uint64_t size() const
Returns the number of elements currently stored.
bool is_open()
Returns whether underlying streams are currently associated to a file.
A generic vector class for integers of width .
size_type size() const noexcept
The number of elements in the int_vector.
int_vector.hpp contains the sdsl::int_vector class.
int_vector ::size_type size_type
Namespace for the succinct data structure library.
std::string cache_file_name(const std::string &key, const cache_config &config)
Returns the file name of the resource.
void construct_isa(cache_config &config)
bool cache_file_exists(const std::string &key, const cache_config &config)
Checks if the resource specified by the key exists in the cache.
bool store_to_cache(const T &v, const std::string &key, cache_config &config, bool add_type_hash=false)
Stores the object v as a resource in the cache.
Helper class for construction process.
util.hpp contains some helper methods for int_vector and other stuff like demangle class names.