8 #ifndef INCLUDED_SDSL_LCP_BITCOMPRESSED
9 #define INCLUDED_SDSL_LCP_BITCOMPRESSED
18 template <u
int8_t t_w
idth = 0>
62 for (
size_type i = 0; i < m_lcp.
size(); ++i) { m_lcp[i] = lcp_buf[i]; }
85 template <
typename archive_t>
91 template <
typename archive_t>
102 written_bytes += m_lcp.
serialize(out, child,
"lcp");
104 return written_bytes;
uint64_t size() const
Returns the number of elements currently stored.
uint8_t width() const
Returns the width of the integers which are accessed via the [] operator.
A generic vector class for integers of width .
bool empty() const noexcept
Equivalent to size() == 0.
int_vector_size_type size_type
void load(std::istream &in)
Load the int_vector for a stream.
size_type size() const noexcept
The number of elements in the int_vector.
int_vector_trait< t_width >::value_type value_type
size_type serialize(std::ostream &out, structure_tree_node *v=nullptr, std::string name="") const
Serializes the int_vector to a stream.
static size_type max_size() noexcept
Maximum size of the int_vector.
const_iterator begin() const
Returns a const_iterator to the first element.
size_type size() const
Number of elements in the instance.
lcp_bitcompressed(const lcp_bitcompressed &)=default
bool empty() const
Returns if the data structure is empty.
const_reference * pointer
lcp_bitcompressed()
Default Constructor.
lcp_bitcompressed & operator=(const lcp_bitcompressed &)=default
static size_type max_size()
Returns the largest size that lcp_bitcompressed can ever have.
lcp_bitcompressed & operator=(lcp_bitcompressed &&)=default
random_access_const_iterator< lcp_bitcompressed > const_iterator
value_type operator[](size_type i) const
Access operator.
const_iterator end() const
Returns a const_iterator to the element after the last element.
int_vector< t_width >::size_type size_type
lcp_bitcompressed(lcp_bitcompressed &&)=default
ptrdiff_t difference_type
bool operator!=(lcp_bitcompressed const &other) const noexcept
Inequality operator.
int_vector< t_width >::value_type value_type
void load(std::istream &in)
Load from a stream.
const_reference reference
lcp_plain_tag lcp_category
bool operator==(lcp_bitcompressed const &other) const noexcept
Equality operator.
const value_type const_reference
const pointer const_pointer
size_type serialize(std::ostream &out, structure_tree_node *v=nullptr, std::string name="") const
Serialize to a stream.
void CEREAL_SAVE_FUNCTION_NAME(archive_t &ar) const
void CEREAL_LOAD_FUNCTION_NAME(archive_t &ar)
lcp_bitcompressed(cache_config &config)
Constructor taking a cache_config.
Generic iterator for a random access container.
static void add_size(structure_tree_node *v, uint64_t value)
static structure_tree_node * add_child(structure_tree_node *v, const std::string &name, const std::string &type)
int_vector.hpp contains the sdsl::int_vector class.
iterators.hpp contains an generic iterator for random access containers.
lcp.hpp contains classes for lcp information.
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.
Helper class for construction process.