SDSL 3.0.3
Succinct Data Structure Library
|
A class supporting constant time select queries. More...
#include <select_support_mcl.hpp>
Public Types | |
enum | { bit_pat = t_b } |
enum | { bit_pat_len = t_pat_len } |
typedef bit_vector | bit_vector_type |
![]() | |
typedef int_vector< 1 >::size_type | size_type |
Public Member Functions | |
select_support_mcl (bit_vector const *v=nullptr) | |
select_support_mcl (select_support_mcl< t_b, t_pat_len > const &ss) | |
select_support_mcl (select_support_mcl< t_b, t_pat_len > &&ss) | |
~select_support_mcl () | |
void | init_slow (bit_vector const *v=nullptr) |
size_type | select (size_type i) const |
Select function. | |
size_type | operator() (size_type i) const |
Alias for select(i). | |
size_type | serialize (std::ostream &out, structure_tree_node *v=nullptr, std::string name="") const |
Serialize the select_support to an out file stream. | |
void | load (std::istream &in, bit_vector const *v=nullptr) |
Load the select_support from an in file stream. | |
void | set_vector (bit_vector const *v=nullptr) |
This method sets the supported bit_vector. | |
template<typename archive_t> | |
void | CEREAL_SAVE_FUNCTION_NAME (archive_t &ar) const |
Serialise (save) via cereal. | |
template<typename archive_t> | |
void | CEREAL_LOAD_FUNCTION_NAME (archive_t &ar) |
Serialise (load) via cereal. | |
select_support_mcl< t_b, t_pat_len > & | operator= (select_support_mcl const &ss) |
select_support_mcl< t_b, t_pat_len > & | operator= (select_support_mcl &&) |
bool | operator== (select_support_mcl const &other) const noexcept |
bool | operator!= (select_support_mcl const &other) const noexcept |
![]() | |
select_support (int_vector< 1 > const *f_v=nullptr) | |
Constructor of select_support. | |
select_support (select_support const &f_v) | |
Copy constructor. | |
virtual | ~select_support () |
Destructor of select_support. | |
Additional Inherited Members | |
![]() | |
bit_vector const * | vv |
![]() | |
int_vector< 1 > const * | m_v |
Pointer to the select supported sdsl::bit_vector. | |
A class supporting constant time select queries.
t_b | Bit pattern 0 ,1 ,10 ,01 which should be ranked. |
t_pat_len | Length of the bit pattern. |
The implementation is a practical variant of the following reference:
Definition at line 64 of file select_support_mcl.hpp.
typedef bit_vector sdsl::select_support_mcl< t_b, t_pat_len >::bit_vector_type |
Definition at line 72 of file select_support_mcl.hpp.
anonymous enum |
Enumerator | |
---|---|
bit_pat_len |
Definition at line 77 of file select_support_mcl.hpp.
anonymous enum |
Enumerator | |
---|---|
bit_pat |
Definition at line 73 of file select_support_mcl.hpp.
|
explicit |
Definition at line 121 of file select_support_mcl.hpp.
sdsl::select_support_mcl< t_b, t_pat_len >::select_support_mcl | ( | select_support_mcl< t_b, t_pat_len > const & | ss | ) |
Definition at line 131 of file select_support_mcl.hpp.
sdsl::select_support_mcl< t_b, t_pat_len >::select_support_mcl | ( | select_support_mcl< t_b, t_pat_len > && | ss | ) |
Definition at line 160 of file select_support_mcl.hpp.
sdsl::select_support_mcl< t_b, t_pat_len >::~select_support_mcl | ( | ) |
Definition at line 200 of file select_support_mcl.hpp.
void sdsl::select_support_mcl< t_b, t_pat_len >::CEREAL_LOAD_FUNCTION_NAME | ( | archive_t & | ar | ) |
Serialise (load) via cereal.
Definition at line 594 of file select_support_mcl.hpp.
void sdsl::select_support_mcl< t_b, t_pat_len >::CEREAL_SAVE_FUNCTION_NAME | ( | archive_t & | ar | ) | const |
Serialise (save) via cereal.
Definition at line 558 of file select_support_mcl.hpp.
void sdsl::select_support_mcl< t_b, t_pat_len >::init_slow | ( | bit_vector const * | v = nullptr | ) |
Definition at line 207 of file select_support_mcl.hpp.
|
virtual |
Load the select_support from an in file stream.
Load an previously serialized select_support from a std::istream.
in | The std::istream to load the select_support. |
v | The bit_vector to be supported. |
Implements sdsl::select_support.
Definition at line 521 of file select_support_mcl.hpp.
|
noexcept |
Definition at line 651 of file select_support_mcl.hpp.
|
inlinevirtual |
Alias for select(i).
Implements sdsl::select_support.
Definition at line 442 of file select_support_mcl.hpp.
select_support_mcl< t_b, t_pat_len > & sdsl::select_support_mcl< t_b, t_pat_len >::operator= | ( | select_support_mcl< t_b, t_pat_len > && | ss | ) |
Definition at line 177 of file select_support_mcl.hpp.
select_support_mcl< t_b, t_pat_len > & sdsl::select_support_mcl< t_b, t_pat_len >::operator= | ( | select_support_mcl< t_b, t_pat_len > const & | ss | ) |
Definition at line 166 of file select_support_mcl.hpp.
|
noexcept |
Definition at line 641 of file select_support_mcl.hpp.
|
inlinevirtual |
Select function.
Implements sdsl::select_support.
Definition at line 384 of file select_support_mcl.hpp.
|
virtual |
Serialize the select_support to an out file stream.
Implements sdsl::select_support.
Definition at line 474 of file select_support_mcl.hpp.
|
virtual |
This method sets the supported bit_vector.
Implements sdsl::select_support.
Definition at line 468 of file select_support_mcl.hpp.