SDSL 3.0.1
Succinct Data Structure Library
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 (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_rrroperator= (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
 

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 425 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 432 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 430 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 431 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 433 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 437 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 ( const bit_vector_type v = nullptr)
inlineexplicit

Standard constructor.

Parameters
vPointer to the rrr_vector, which should be supported

Definition at line 452 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 592 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 588 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 &  ,
const bit_vector_type v = nullptr 
)
inline

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

Definition at line 577 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!= ( const rank_support_rrr< t_b, 15, t_rac, t_k > &  other) const
inlinenoexcept

Definition at line 597 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 562 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= ( const rank_support_rrr< t_b, 15, t_rac, t_k > &  rs)
inline

Definition at line 570 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== ( const rank_support_rrr< t_b, 15, t_rac, t_k > &  other) const
inlinenoexcept

Definition at line 595 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 460 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 580 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 ( const bit_vector_type v = nullptr)
inline

Set the supported vector.

Definition at line 568 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 565 of file rrr_vector_15.hpp.


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