SDSL 3.0.1
Succinct Data Structure Library
|
rank_support for the specialized rrr_vector class of block size 15. More...
#include <rrr_vector_15.hpp>
Public Types | |
enum | { bit_pat = t_b } |
enum | { bit_pat_len = (uint8_t)1 } |
typedef rrr_vector< 15, t_rac, t_k > | bit_vector_type |
typedef bit_vector_type::size_type | size_type |
typedef bit_vector_type::bi_type | bi_type |
Public Member Functions | |
rank_support_rrr (const bit_vector_type *v=nullptr) | |
Standard constructor. More... | |
const size_type | rank (size_type i) const |
Answers rank queries. More... | |
const size_type | operator() (size_type i) const |
Short hand for rank(i) More... | |
const size_type | size () const |
Returns the size of the original vector. More... | |
void | set_vector (const bit_vector_type *v=nullptr) |
Set the supported vector. More... | |
rank_support_rrr & | operator= (const rank_support_rrr &rs) |
void | load (std::istream &, const bit_vector_type *v=nullptr) |
Load the data structure from a stream and set the supported vector. More... | |
size_type | serialize (std::ostream &, structure_tree_node *v=nullptr, std::string name="") const |
Serializes the data structure into a stream. More... | |
template<typename archive_t > | |
void | CEREAL_SAVE_FUNCTION_NAME (archive_t &) const |
template<typename archive_t > | |
void | CEREAL_LOAD_FUNCTION_NAME (archive_t &) |
bool | operator== (const rank_support_rrr &other) const noexcept |
bool | operator!= (const rank_support_rrr &other) const noexcept |
rank_support for the specialized rrr_vector class of block size 15.
The first template parameter is the bit pattern of size one.
Definition at line 425 of file rrr_vector_15.hpp.
typedef bit_vector_type::bi_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::bi_type |
Definition at line 432 of file rrr_vector_15.hpp.
typedef rrr_vector<15, t_rac, t_k> sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::bit_vector_type |
Definition at line 430 of file rrr_vector_15.hpp.
typedef bit_vector_type::size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::size_type |
Definition at line 431 of file rrr_vector_15.hpp.
anonymous enum |
Enumerator | |
---|---|
bit_pat |
Definition at line 433 of file rrr_vector_15.hpp.
anonymous enum |
Enumerator | |
---|---|
bit_pat_len |
Definition at line 437 of file rrr_vector_15.hpp.
|
inlineexplicit |
Standard constructor.
v | Pointer to the rrr_vector, which should be supported |
Definition at line 452 of file rrr_vector_15.hpp.
|
inline |
Definition at line 592 of file rrr_vector_15.hpp.
|
inline |
Definition at line 588 of file rrr_vector_15.hpp.
|
inline |
Load the data structure from a stream and set the supported vector.
Definition at line 577 of file rrr_vector_15.hpp.
|
inlinenoexcept |
Definition at line 597 of file rrr_vector_15.hpp.
|
inline |
Short hand for rank(i)
Definition at line 562 of file rrr_vector_15.hpp.
|
inline |
Definition at line 570 of file rrr_vector_15.hpp.
|
inlinenoexcept |
Definition at line 595 of file rrr_vector_15.hpp.
|
inline |
Answers rank queries.
i | Argument for the length of the prefix v[0..i-1], with ![]() |
Definition at line 460 of file rrr_vector_15.hpp.
|
inline |
Serializes the data structure into a stream.
Definition at line 580 of file rrr_vector_15.hpp.
|
inline |
Set the supported vector.
Definition at line 568 of file rrr_vector_15.hpp.
|
inline |
Returns the size of the original vector.
Definition at line 565 of file rrr_vector_15.hpp.