#include <dag_vector.hpp>
Direct Accessible Gamma code Vector
uint64_t get_alloc_byte_num |
( |
| ) |
const |
|
inline |
Get the number of allocated bytes
uint64_t operator[] |
( |
uint64_t |
ind | ) |
const |
|
inline |
Lookup the ind-th element
- Parameters
-
- Returns
- the ind-th element
uint64_t prefix_sum |
( |
uint64_t |
ind | ) |
const |
|
inline |
Compute the prefix sum: the sum of [0...ind-1] values. O(log max_val) time.
- Parameters
-
- Returns
- the sum of v[0] v[1] ... v[ind-1]
std::pair<uint64_t, uint64_t> prefix_sum_val |
( |
uint64_t |
ind | ) |
const |
|
inline |
Compute the prefix sum and the value in O(log max_val) time.
- Parameters
-
- Returns
- the pair of the prefix sum (sum of v[0] v[1] ... v[ind-1]) and v[ind]
void push_back |
( |
uint64_t |
val | ) |
|
|
inline |
Add element in a gamma code
- Parameters
-
val | an element to be added |
Return the number of elements
- Returns
- the number of elements
Return the sum of values
- Returns
- the sum of values
Swap the content
- Parameters
-
The documentation for this class was generated from the following file:
- /builds/workspace/publish-doc-api-gitlab/gatb-core/src/gatb/debruijn/impl/dag_vector.hpp