SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
A class supporting select quries by using a rank_support and binary search. More...
#include <select_support_bs.hpp>
Inherits sdsl::select_support.
Public Types | |
typedef RankSupport::bit_vector_type | bit_vector_type |
Public Member Functions | |
select_support_bs (const int_vector< 1 > *v=NULL, const RankSupport *m_rs=NULL) | |
select_support_bs (const select_support_bs &ss) | |
void | init (const int_vector< 1 > *v=NULL) |
Initalization method for select_support. | |
const size_type | select (size_type) const |
Select returns the index of the i-th 1-bit in the supported bit_vector. | |
const size_type | operator() (size_type) const |
Alias for select(i). | |
size_type | serialize (std::ostream &out, structure_tree_node *v=NULL, std::string name="") const |
Serialize the select_support to an out file stream. | |
void | load (std::istream &in, const int_vector< 1 > *v=NULL) |
Load the select_support from an in file stream. | |
void | set_vector (const int_vector< 1 > *v=NULL) |
This method sets the supported bit_vector. | |
select_support_bs & | operator= (const select_support_bs &ss) |
void | swap (select_support_bs &ss) |
bool | operator== (const select_support_bs &ss) const |
Equality Operator. | |
bool | operator!= (const select_support_bs &ss) const |
Unequality Operator. |
A class supporting select quries by using a rank_support and binary search.
void sdsl::select_support_bs< RankSupport >::init | ( | const int_vector< 1 > * | v = NULL | ) | [virtual] |
Initalization method for select_support.
Init takes no arguments and should be called before the first call to the select method if not
Implements sdsl::select_support.
void sdsl::select_support_bs< RankSupport >::load | ( | std::istream & | in, |
const int_vector< 1 > * | v = NULL |
||
) | [virtual] |
Load the select_support from an in file stream.
Load an previously serialized select_support from a std::istream. This method could replace the call of init before the first call of the select method.
in | The std::istream to load the select_support. |
v | The bit_vector to be supported. |
Implements sdsl::select_support.
bool sdsl::select_support_bs< RankSupport >::operator!= | ( | const select_support_bs< RankSupport > & | ss | ) | const |
Unequality Operator.
Two select_support_bss are not equal if any member variable are not equal. Required for the Equality Comparable Concept of the STL.
bool sdsl::select_support_bs< RankSupport >::operator== | ( | const select_support_bs< RankSupport > & | ss | ) | const |
Equality Operator.
Two select_support_bss are equal if all member variables are equal. Required for the Equality Comparable Concept of the STL.
const select_support_bs< RankSupport >::size_type sdsl::select_support_bs< RankSupport >::select | ( | size_type | i | ) | const [inline, virtual] |
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.
void sdsl::select_support_bs< RankSupport >::set_vector | ( | const int_vector< 1 > * | v = NULL | ) | [virtual] |
This method sets the supported bit_vector.
Implements sdsl::select_support.