|
vg
tools for working with variation graphs
|
#include <varint.hpp>
Public Member Functions | |
| void | add_value (size_t value) |
| void | add_one_byte (const uint8_t &byte) |
| std::pair< size_t, size_t > | get_value_and_next_index (size_t index) const |
| bool | operator== (const varint_vector_t &other) const |
| Equality operator. | |
| size_t | byte_count () const |
| void | print_self () const |
| Print bit representation for debugging. | |
| std::vector< size_t > | to_vector () const |
| Dump to a normal vector. | |
| void | from_vector (const std::vector< size_t > &values) |
| Load from a normal vector. | |
Public Attributes | |
| std::vector< uint8_t > | data |
Static Private Attributes | |
| static const size_t | USABLE_BITS = 7 |
| static const uint8_t | MAX_VALUE = (1 << USABLE_BITS) - 1 |
|
inline |
| void vg::varint_vector_t::add_value | ( | size_t | value | ) |
|
inline |
| void vg::varint_vector_t::from_vector | ( | const std::vector< size_t > & | values | ) |
Load from a normal vector.
| std::pair< size_t, size_t > vg::varint_vector_t::get_value_and_next_index | ( | size_t | index | ) | const |
|
inline |
Equality operator.
| void vg::varint_vector_t::print_self | ( | ) | const |
Print bit representation for debugging.
| std::vector< size_t > vg::varint_vector_t::to_vector | ( | ) | const |
Dump to a normal vector.
| std::vector<uint8_t> vg::varint_vector_t::data |
|
staticprivate |
|
staticprivate |
1.17.0