SDSL
3.0.0
Succinct Data Structure Library
|
A class supporting linear time select queries. More...
#include <select_support_scan.hpp>
Public Types | |
enum | { bit_pat = t_b } |
typedef bit_vector | bit_vector_type |
![]() | |
typedef int_vector< 1 >::size_type | size_type |
Public Member Functions | |
select_support_scan (const bit_vector *v=nullptr) | |
select_support_scan (const select_support_scan< t_b, t_pat_len > &ss) | |
size_type | select (size_type i) const |
Select returns the index of the i-th 1-bit in the supported bit_vector. More... | |
size_type | operator() (size_type i) const |
Alias for select. More... | |
size_type | serialize (std::ostream &out, structure_tree_node *v=nullptr, std::string name="") const |
Serialize the select_support to an out file stream. More... | |
void | load (std::istream &, SDSL_UNUSED const bit_vector *v=nullptr) |
template<typename archive_t > | |
void | CEREAL_SAVE_FUNCTION_NAME (archive_t &ar) const |
Serialise (save) via cereal. More... | |
template<typename archive_t > | |
void | CEREAL_LOAD_FUNCTION_NAME (archive_t &ar) |
Serialise (load) via cereal. More... | |
void | set_vector (const bit_vector *v=nullptr) |
This method sets the supported bit_vector. More... | |
select_support_scan< t_b, t_pat_len > & | operator= (const select_support_scan &ss) |
bool | operator== (select_support_scan const &other) const noexcept |
Equality operator. More... | |
bool | operator!= (select_support_scan const &other) const noexcept |
Inequality operator. More... | |
![]() | |
select_support (const int_vector< 1 > *f_v=nullptr) | |
Constructor of select_support. More... | |
select_support (const select_support &f_v) | |
Copy constructor. More... | |
virtual | ~select_support () |
Destructor of select_support. More... | |
virtual void | load (std::istream &in, const int_vector< 1 > *v=nullptr)=0 |
Load the select_support from an in file stream. More... | |
Additional Inherited Members | |
![]() | |
const bit_vector * | vv |
![]() | |
const int_vector< 1 > * | m_v |
Pointer to the select supported sdsl::bit_vector. More... | |
A class supporting linear time select queries.
t_b | Bit pattern which should be supported. Either 0 ,1 ,10 ,01 . |
t_pat_len | Length of the bit pattern. |
Definition at line 30 of file select_support_scan.hpp.
typedef bit_vector sdsl::select_support_scan< t_b, t_pat_len >::bit_vector_type |
Definition at line 38 of file select_support_scan.hpp.
anonymous enum |
Enumerator | |
---|---|
bit_pat |
Definition at line 39 of file select_support_scan.hpp.
|
inlineexplicit |
Definition at line 45 of file select_support_scan.hpp.
|
inline |
Definition at line 48 of file select_support_scan.hpp.
void sdsl::select_support_scan< t_b, t_pat_len >::CEREAL_LOAD_FUNCTION_NAME | ( | archive_t & | ar | ) |
Serialise (load) via cereal.
Definition at line 86 of file select_support_scan.hpp.
void sdsl::select_support_scan< t_b, t_pat_len >::CEREAL_SAVE_FUNCTION_NAME | ( | archive_t & | ar | ) | const |
Serialise (save) via cereal.
Definition at line 81 of file select_support_scan.hpp.
|
inline |
Definition at line 58 of file select_support_scan.hpp.
|
inlinenoexcept |
Inequality operator.
Definition at line 76 of file select_support_scan.hpp.
|
inlinevirtual |
Alias for select.
Implements sdsl::select_support.
Definition at line 53 of file select_support_scan.hpp.
|
inline |
Definition at line 66 of file select_support_scan.hpp.
|
inlinenoexcept |
Equality operator.
Definition at line 73 of file select_support_scan.hpp.
|
inlinevirtual |
Select returns the index of the i-th 1-bit in the supported bit_vector.
i | Argument to calculate the index of the i-th 1-bit in the supported bit_vector. |
Implements sdsl::select_support.
Definition at line 90 of file select_support_scan.hpp.
|
inlinevirtual |
Serialize the select_support to an out file stream.
Implements sdsl::select_support.
Definition at line 54 of file select_support_scan.hpp.
|
inlinevirtual |
This method sets the supported bit_vector.
Implements sdsl::select_support.
Definition at line 65 of file select_support_scan.hpp.