8#ifndef INCLUDED_SDSL_LCP_VLC
9#define INCLUDED_SDSL_LCP_VLC
26template <
class t_vlc_vec = vlc_vector<>>
71 if (
"" != other_key) { lcp_key = other_key; }
83 bool empty()
const {
return m_vec.empty(); }
99 written_bytes += m_vec.serialize(out, child,
"vec");
101 return written_bytes;
105 void load(std::istream & in) { m_vec.load(in); }
107 template <
typename archive_t>
113 template <
typename archive_t>
static size_type max_size()
Returns the largest size that lcp_vlc can ever have.
void CEREAL_LOAD_FUNCTION_NAME(archive_t &ar)
const value_type const_reference
lcp_vlc & operator=(const lcp_vlc &)=default
lcp_vlc(lcp_vlc &&)=default
bool empty() const
Returns if the data strucutre is empty.
size_type size() const
Number of elements in the instance.
lcp_vlc()=default
Default Constructor.
value_type operator[](size_type i) const
[]-operator
void CEREAL_SAVE_FUNCTION_NAME(archive_t &ar) const
const_iterator begin() const
Returns a const_iterator to the first element.
lcp_vlc(cache_config &config, std::string other_key="")
Construct.
bool operator==(lcp_vlc const &other) const noexcept
Equality operator.
bool operator!=(lcp_vlc const &other) const noexcept
Inequality operator.
t_vlc_vec::value_type value_type
lcp_vlc & operator=(lcp_vlc &&)=default
random_access_const_iterator< lcp_vlc > const_iterator
void load(std::istream &in)
Load from a stream.
lcp_plain_tag lcp_category
t_vlc_vec::difference_type difference_type
const_reference * pointer
const_iterator end() const
Returns a const_iterator to the element after the last element.
t_vlc_vec::size_type size_type
const pointer const_pointer
lcp_vlc(const lcp_vlc &)=default
Copy / Move constructor.
size_type serialize(std::ostream &out, structure_tree_node *v=nullptr, std::string name="") const
Serialize to a stream.
const_reference reference
Generic iterator for a random access container.
static structure_tree_node * add_child(structure_tree_node *v, const std::string &name, const std::string &type)
static void add_size(structure_tree_node *v, uint64_t value)
int_vector.hpp contains the sdsl::int_vector class.
iterators.hpp contains an generic iterator for random access containers.
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.
Helper class for construction process.
vlc_vector.hpp contains a vector which stores the values with variable length codes.