SDSL 3.0.3
Succinct Data Structure Library
Loading...
Searching...
No Matches
sdsl::rank_support_rrr< t_b, 15, t_rac, t_k > Class Template Reference

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 (bit_vector_type const *v=nullptr)
 Standard constructor.
 
const size_type rank (size_type i) const
 Answers rank queries.
 
const size_type operator() (size_type i) const
 Short hand for rank(i)
 
const size_type size () const
 Returns the size of the original vector.
 
void set_vector (bit_vector_type const *v=nullptr)
 Set the supported vector.
 
rank_support_rrroperator= (rank_support_rrr const &rs)
 
void load (std::istream &, bit_vector_type const *v=nullptr)
 Load the data structure from a stream and set the supported vector.
 
size_type serialize (std::ostream &, structure_tree_node *v=nullptr, std::string name="") const
 Serializes the data structure into a stream.
 
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== (rank_support_rrr const &other) const noexcept
 
bool operator!= (rank_support_rrr const &other) const noexcept
 

Detailed Description

template<uint8_t t_b, class t_rac, uint16_t t_k>
class sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >

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 477 of file rrr_vector_15.hpp.

Member Typedef Documentation

◆ bi_type

template<uint8_t t_b, class t_rac , uint16_t t_k>
typedef bit_vector_type::bi_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::bi_type

Definition at line 484 of file rrr_vector_15.hpp.

◆ bit_vector_type

template<uint8_t t_b, class t_rac , uint16_t t_k>
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 482 of file rrr_vector_15.hpp.

◆ size_type

template<uint8_t t_b, class t_rac , uint16_t t_k>
typedef bit_vector_type::size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::size_type

Definition at line 483 of file rrr_vector_15.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<uint8_t t_b, class t_rac , uint16_t t_k>
anonymous enum
Enumerator
bit_pat 

Definition at line 485 of file rrr_vector_15.hpp.

◆ anonymous enum

template<uint8_t t_b, class t_rac , uint16_t t_k>
anonymous enum
Enumerator
bit_pat_len 

Definition at line 489 of file rrr_vector_15.hpp.

Constructor & Destructor Documentation

◆ rank_support_rrr()

template<uint8_t t_b, class t_rac , uint16_t t_k>
sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::rank_support_rrr ( bit_vector_type const * v = nullptr)
inlineexplicit

Standard constructor.

Parameters
vPointer to the rrr_vector, which should be supported

Definition at line 505 of file rrr_vector_15.hpp.

Member Function Documentation

◆ CEREAL_LOAD_FUNCTION_NAME()

template<uint8_t t_b, class t_rac , uint16_t t_k>
template<typename archive_t >
void sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::CEREAL_LOAD_FUNCTION_NAME ( archive_t & )
inline

Definition at line 671 of file rrr_vector_15.hpp.

◆ CEREAL_SAVE_FUNCTION_NAME()

template<uint8_t t_b, class t_rac , uint16_t t_k>
template<typename archive_t >
void sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::CEREAL_SAVE_FUNCTION_NAME ( archive_t & ) const
inline

Definition at line 667 of file rrr_vector_15.hpp.

◆ load()

template<uint8_t t_b, class t_rac , uint16_t t_k>
void sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::load ( std::istream & ,
bit_vector_type const * v = nullptr )
inline

Load the data structure from a stream and set the supported vector.

Definition at line 653 of file rrr_vector_15.hpp.

◆ operator!=()

template<uint8_t t_b, class t_rac , uint16_t t_k>
bool sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::operator!= ( rank_support_rrr< t_b, 15, t_rac, t_k > const & other) const
inlinenoexcept

Definition at line 679 of file rrr_vector_15.hpp.

◆ operator()()

template<uint8_t t_b, class t_rac , uint16_t t_k>
const size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::operator() ( size_type i) const
inline

Short hand for rank(i)

Definition at line 626 of file rrr_vector_15.hpp.

◆ operator=()

template<uint8_t t_b, class t_rac , uint16_t t_k>
rank_support_rrr & sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::operator= ( rank_support_rrr< t_b, 15, t_rac, t_k > const & rs)
inline

Definition at line 643 of file rrr_vector_15.hpp.

◆ operator==()

template<uint8_t t_b, class t_rac , uint16_t t_k>
bool sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::operator== ( rank_support_rrr< t_b, 15, t_rac, t_k > const & other) const
inlinenoexcept

Definition at line 674 of file rrr_vector_15.hpp.

◆ rank()

template<uint8_t t_b, class t_rac , uint16_t t_k>
const size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::rank ( size_type i) const
inline

Answers rank queries.

Parameters
iArgument for the length of the prefix v[0..i-1], with $0\leq i \leq size()$.
Returns
Number of 1-bits in the prefix [0..i-1] of the original bit_vector.
Time complexity
$ \Order{ sample\_rate of the rrr\_vector} $

Definition at line 516 of file rrr_vector_15.hpp.

◆ serialize()

template<uint8_t t_b, class t_rac , uint16_t t_k>
size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::serialize ( std::ostream & ,
structure_tree_node * v = nullptr,
std::string name = "" ) const
inline

Serializes the data structure into a stream.

Definition at line 659 of file rrr_vector_15.hpp.

◆ set_vector()

template<uint8_t t_b, class t_rac , uint16_t t_k>
void sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::set_vector ( bit_vector_type const * v = nullptr)
inline

Set the supported vector.

Definition at line 638 of file rrr_vector_15.hpp.

◆ size()

template<uint8_t t_b, class t_rac , uint16_t t_k>
const size_type sdsl::rank_support_rrr< t_b, 15, t_rac, t_k >::size ( ) const
inline

Returns the size of the original vector.

Definition at line 632 of file rrr_vector_15.hpp.


The documentation for this class was generated from the following file: