|
SDSL 3.0.1
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 |
Public Types inherited from sdsl::select_support | |
| 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. | |
| size_type | operator() (size_type i) const |
| Alias for select. | |
| 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 &, SDSL_UNUSED const bit_vector *v=nullptr) |
| 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. | |
| void | set_vector (const bit_vector *v=nullptr) |
| This method sets the supported bit_vector. | |
| 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. | |
| bool | operator!= (select_support_scan const &other) const noexcept |
| Inequality operator. | |
Public Member Functions inherited from sdsl::select_support | |
| select_support (const int_vector< 1 > *f_v=nullptr) | |
| Constructor of select_support. | |
| select_support (const select_support &f_v) | |
| Copy constructor. | |
| virtual | ~select_support () |
| Destructor of select_support. | |
| virtual size_type | select (size_type i) const =0 |
| Select returns the index of the i-th 1-bit in the supported bit_vector. | |
| virtual size_type | operator() (size_type i) const =0 |
| Alias for select. | |
| virtual size_type | serialize (std::ostream &out, structure_tree_node *v, std::string name) const =0 |
| Serialize the select_support to an out file stream. | |
| virtual void | load (std::istream &in, const int_vector< 1 > *v=nullptr)=0 |
| Load the select_support from an in file stream. | |
| virtual void | set_vector (const int_vector< 1 > *v=nullptr)=0 |
| This method sets the supported bit_vector. | |
Additional Inherited Members | |
Public Attributes inherited from sdsl::select_support | |
| const bit_vector * | vv |
Protected Attributes inherited from sdsl::select_support | |
| const int_vector< 1 > * | m_v |
| Pointer to the select supported sdsl::bit_vector. | |
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. |
![$\in [0..v.size()-1]$](form_165.png)
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.