SDSL 3.0.3
Succinct Data Structure Library
|
A bit compressed word. More...
#include <rank_support_int_v.hpp>
Public Types | |
using | size_type = size_t |
The size type needed for serialisation. | |
Public Member Functions | |
bit_compressed_word ()=default | |
The default constructor. | |
bit_compressed_word (bit_compressed_word const &)=default | |
The copy constructor. | |
bit_compressed_word (bit_compressed_word &&)=default | |
The move constructor. | |
bit_compressed_word & | operator= (bit_compressed_word const &)=default |
The copy assignment. | |
bit_compressed_word & | operator= (bit_compressed_word &&)=default |
The move assignment. | |
~bit_compressed_word ()=default | |
The destructor. | |
template<typename it_t> | |
constexpr | bit_compressed_word (it_t it, it_t end) noexcept |
Constructs from a range of values. | |
constexpr value_t | operator[] (size_t const index) const noexcept |
Extracts the value from the given index. | |
template<typename it_t> | |
constexpr void | assign (it_t it, it_t end) noexcept |
Assigns a range to the word. | |
constexpr | operator uint64_t () const noexcept |
Implicitly converts to the word type. | |
size_type | serialize (std::ostream &out, structure_tree_node *v=nullptr, const std::string name="") const |
Saves to the stream. | |
void | load (std::istream &in) |
Loads from the stream. | |
template<typename archive_t> | |
void | CEREAL_SAVE_FUNCTION_NAME (archive_t &ar) const |
Saves to the archive. | |
template<typename archive_t> | |
void | CEREAL_LOAD_FUNCTION_NAME (archive_t &ar) |
Loads from the archive. | |
A bit compressed word.
value_t | The represented value_type. |
bits_per_value | How many bits are used to store one value. Must be less than 64. |
Uses bit compression to pack as many values as possible into one word. The last bits won't be used if bits_per_value
is not a power of two.
Definition at line 46 of file rank_support_int_v.hpp.
using sdsl::detail::bit_compressed_word< value_t, bits_per_value >::size_type = size_t |
The size type needed for serialisation.
Definition at line 61 of file rank_support_int_v.hpp.
|
default |
The default constructor.
|
default |
The copy constructor.
|
default |
The move constructor.
|
default |
The destructor.
|
inlineconstexprnoexcept |
Constructs from a range of values.
it_t | The iterator type. |
[in] | it | The iterator pointing to the first element to be stored. |
[in] | end | The end of the range. |
The size of the range must be less or equal than max_size
.
Definition at line 86 of file rank_support_int_v.hpp.
|
inlineconstexprnoexcept |
Assigns a range to the word.
it_t | The iterator type. |
[in] | it | The iterator pointing to the first element to be stored. |
[in] | end | The end of the range. |
The size of the range must be less or equal than max_size
.
Definition at line 106 of file rank_support_int_v.hpp.
|
inline |
Loads from the archive.
Definition at line 147 of file rank_support_int_v.hpp.
|
inline |
Saves to the archive.
Definition at line 140 of file rank_support_int_v.hpp.
|
inline |
Loads from the stream.
Definition at line 133 of file rank_support_int_v.hpp.
|
inlineconstexprnoexcept |
Implicitly converts to the word type.
Definition at line 118 of file rank_support_int_v.hpp.
|
default |
The move assignment.
|
default |
The copy assignment.
|
inlineconstexprnoexcept |
Extracts the value from the given index.
[in] | index | The index to get the value from. |
Definition at line 95 of file rank_support_int_v.hpp.
|
inline |
Saves to the stream.
Definition at line 124 of file rank_support_int_v.hpp.