|
SDSL: Succinct Data Structure Library
A C++ template library for succinct data structures
|
A bit vector which compresses very sparse populated bit vectors by. More...
#include <sd_vector.hpp>
Public Types | |
| typedef bit_vector::size_type | size_type |
| typedef size_type | value_type |
| typedef hi_select_0 | select_0_support_type |
| typedef hi_select_1 | select_1_support_type |
|
typedef sd_rank_support < hi_bit_vector_type, select_1_support_type, select_0_support_type > | rank_1_type |
|
typedef sd_select_support < hi_bit_vector_type, select_1_support_type, select_0_support_type > | select_1_type |
Public Member Functions | |
| sd_vector (const bit_vector &bv) | |
| value_type | operator[] (size_type i) const |
| Accessing the i-th element of the original bit_vector. | |
| void | swap (sd_vector &v) |
| Swap method. | |
| size_type | size () const |
| Returns the size of the original bit vector. | |
| sd_vector & | operator= (const sd_vector &v) |
| 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. | |
Public Attributes | |
| const hi_bit_vector_type & | high |
| const int_vector & | low |
| const select_1_support_type & | high_1_select |
| const select_0_support_type & | high_0_select |
Friends | |
| class | sd_rank_support< hi_bit_vector_type, select_1_support_type, select_0_support_type > |
| class | sd_select_support< hi_bit_vector_type, select_1_support_type, select_0_support_type > |
A bit vector which compresses very sparse populated bit vectors by.
| hi_bit_vector_type | Type of the bitvector HI used for representing the high part of the positions of the 1s. |
| hi_select_1 | Type of the select support data structure which is used to select ones in HI. |
| hi_select_0 | Type of the select support data structure which is used to select zeros in HI. |
| value_type sdsl::sd_vector< hi_bit_vector_type, hi_select_1, hi_select_0 >::operator[] | ( | size_type | i | ) | const [inline] |
Accessing the i-th element of the original bit_vector.
| i | An index i with . |
, where m equals the number of zeros
by using binary search in the second step.
1.8.0