One item in the zip code tree, representing a node or edge of the tree.
More...
#include <zip_code_tree.hpp>
One item in the zip code tree, representing a node or edge of the tree.
◆ tree_item_t() [1/5]
vg::ZipCodeTree::tree_item_t::tree_item_t |
( |
| ) |
|
|
inline |
◆ tree_item_t() [2/5]
vg::ZipCodeTree::tree_item_t::tree_item_t |
( |
tree_item_type_t |
type, |
|
|
size_t |
raw_value, |
|
|
bool |
is_reversed_or_cyclic |
|
) |
| |
|
inline |
◆ tree_item_t() [3/5]
vg::ZipCodeTree::tree_item_t::tree_item_t |
( |
tree_item_type_t |
type, |
|
|
size_t |
raw_value |
|
) |
| |
|
inline |
Constructor to set a "false" for is_reversed_or_cyclic.
◆ tree_item_t() [4/5]
vg::ZipCodeTree::tree_item_t::tree_item_t |
( |
tree_item_type_t |
type, |
|
|
bool |
is_reversed_or_cyclic |
|
) |
| |
|
inline |
◆ tree_item_t() [5/5]
◆ get_is_cyclic()
bool vg::ZipCodeTree::tree_item_t::get_is_cyclic |
( |
| ) |
const |
|
inline |
Is this bound part of a cyclic snarl? Uses is_reversed_or_cyclic Only call on a bound
◆ get_is_reversed()
bool vg::ZipCodeTree::tree_item_t::get_is_reversed |
( |
| ) |
const |
|
inline |
Is this seed reversed in the tree? Uses is_reversed_or_cyclic Only call on a SEED
◆ get_other_bound_offset()
int64_t vg::ZipCodeTree::tree_item_t::get_other_bound_offset |
( |
| ) |
const |
|
inline |
What to add or subtract to this thing's index to get index of other bound
◆ get_section_length()
size_t vg::ZipCodeTree::tree_item_t::get_section_length |
( |
| ) |
const |
|
inline |
◆ get_type()
◆ get_value()
size_t vg::ZipCodeTree::tree_item_t::get_value |
( |
| ) |
const |
|
inline |
◆ internal_max()
static size_t vg::ZipCodeTree::tree_item_t::internal_max |
( |
| ) |
|
|
inlinestaticprivate |
◆ set_is_cyclic()
void vg::ZipCodeTree::tree_item_t::set_is_cyclic |
( |
bool |
is_cyclic | ) |
|
|
inline |
◆ set_section_length()
void vg::ZipCodeTree::tree_item_t::set_section_length |
( |
size_t |
new_length | ) |
|
|
inline |
◆ set_value()
void vg::ZipCodeTree::tree_item_t::set_value |
( |
size_t |
new_value | ) |
|
|
inline |
◆ is_reversed_or_cyclic
bool vg::ZipCodeTree::tree_item_t::is_reversed_or_cyclic |
|
private |
For a seed, if we're walking through the tree from right to left (the default), will we traverse this position backwards? Or, for a bound is the snarl or parent snarl cyclic? Ignored for EDGE/CHAIN_COUNT and should be set to false
◆ section_length
size_t vg::ZipCodeTree::tree_item_t::section_length |
|
private |
For a bound, how long the internal section is e.g. a chain with one seed would be "1"
◆ type
Is this a seed, boundary, or an edge.
◆ value
size_t vg::ZipCodeTree::tree_item_t::value |
|
private |
For a seed, the index into seeds For an edge, the distance value For a snarl or child chain bound, distance to the snarl start For example, (1 0 0 0 [seed]) would have 0 for the snarl start, 5 for the chain start, 7 for the chain end, and 8 for the snarl end
The documentation for this struct was generated from the following file: