SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
 All Classes Namespaces Files Functions Variables Typedefs Friends
Public Types | Public Member Functions | Public Attributes | Friends
sdsl::rrr_vector< 15, wt_type > Class Template Reference

A specialization of the rrr_vector class for a block_size of 15. More...

#include <rrr_vector_15.hpp>

List of all members.

Public Types

enum  { block_size = 15 }
typedef bit_vector::size_type size_type
typedef bit_vector::value_type value_type
typedef rrr_rank_support
< 1, 15, wt_type > 
rank_1_type
typedef rrr_rank_support
< 0, 15, wt_type > 
rank_0_type
typedef rrr_select_support
< 1, 15, wt_type > 
select_1_type
typedef rrr_select_support
< 0, 15, wt_type > 
select_0_type
typedef binomial< block_size > bi_type

Public Member Functions

 rrr_vector (uint16_t sample_rate=32)
 Default constructor.
 rrr_vector (const rrr_vector &rrr)
 Copy constructor.
 rrr_vector (const bit_vector &bv, uint16_t sample_rate=32)
 Constructor.
void swap (rrr_vector &rrr)
 Swap method.
value_type operator[] (size_type i) const
 Accessing the i-th element of the original bit_vector.
rrr_vectoroperator= (const rrr_vector &rrr)
 Assignment operator.
size_type size () const
 Returns the size of the original bit vector.
size_type serialize (std::ostream &out, structure_tree_node *v=NULL, std::string name="") const
 Serializes the data structure into the given ostream.
void load (std::istream &in)
 Loads the data structure from the given istream.
void print_info () const

Public Attributes

const wt_type & bt
const bit_vectorbtnr

Friends

class rrr_rank_support< 0, 15, wt_type >
class rrr_rank_support< 1, 15, wt_type >
class rrr_select_support< 0, 15, wt_type >
class rrr_select_support< 1, 15, wt_type >

Detailed Description

template<class wt_type>
class sdsl::rrr_vector< 15, wt_type >

A specialization of the rrr_vector class for a block_size of 15.

Several tricks were used to speed-up the operations:


Constructor & Destructor Documentation

template<class wt_type >
sdsl::rrr_vector< 15, wt_type >::rrr_vector ( const bit_vector bv,
uint16_t  sample_rate = 32 
) [inline]

Constructor.

Parameters:
sample_rateInsert a sampled block between sample_rate blocks

Member Function Documentation

template<class wt_type >
value_type sdsl::rrr_vector< 15, wt_type >::operator[] ( size_type  i) const [inline]

Accessing the i-th element of the original bit_vector.

Parameters:
iAn index i with $ 0 \leq i < size() $.
Returns:
The i-th bit of the original bit_vector

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