vg
tools for working with variation graphs
Loading...
Searching...
No Matches
vg::ZipCodeForest::sort_value_t Struct Reference

Public Member Functions

 sort_value_t ()
 Constructor to make an empty sort value.
 sort_value_t (size_t sort_value, ZipCode::code_type_t code_typecode_type, size_t chain_order)
 Constructor for raw values.
size_t get_sort_value () const
 Get the value used for sorting.
size_t get_distance_value () const
 Get the value used for distance finding.
ZipCode::code_type_t get_code_type () const
size_t get_chain_component () const
void set_sort_value (size_t value)
void set_code_type (ZipCode::code_type_t type)
void set_chain_order (size_t order)
void set_chain_component (size_t component)

Private Attributes

size_t sort_value
 Value to sort on.
ZipCode::code_type_t code_type: 5
 The type of the snarl tree structure.
size_t chain_order: 3
 The +0/+1/+2 offset used for chain prefix sums.
size_t chain_component: 24
 If the item is a child of a chain, its chain component.

Constructor & Destructor Documentation

◆ sort_value_t() [1/2]

vg::ZipCodeForest::sort_value_t::sort_value_t ( )
inline

Constructor to make an empty sort value.

◆ sort_value_t() [2/2]

vg::ZipCodeForest::sort_value_t::sort_value_t ( size_t sort_value,
ZipCode::code_type_t code_type,
size_t chain_order )
inline

Constructor for raw values.

Member Function Documentation

◆ get_chain_component()

size_t vg::ZipCodeForest::sort_value_t::get_chain_component ( ) const
inline

◆ get_code_type()

ZipCode::code_type_t vg::ZipCodeForest::sort_value_t::get_code_type ( ) const
inline

◆ get_distance_value()

size_t vg::ZipCodeForest::sort_value_t::get_distance_value ( ) const
inline

Get the value used for distance finding.

◆ get_sort_value()

size_t vg::ZipCodeForest::sort_value_t::get_sort_value ( ) const
inline

Get the value used for sorting.

◆ set_chain_component()

void vg::ZipCodeForest::sort_value_t::set_chain_component ( size_t component)
inline

◆ set_chain_order()

void vg::ZipCodeForest::sort_value_t::set_chain_order ( size_t order)
inline

◆ set_code_type()

void vg::ZipCodeForest::sort_value_t::set_code_type ( ZipCode::code_type_t type)
inline

◆ set_sort_value()

void vg::ZipCodeForest::sort_value_t::set_sort_value ( size_t value)
inline

Member Data Documentation

◆ chain_component

size_t vg::ZipCodeForest::sort_value_t::chain_component
private

If the item is a child of a chain, its chain component.

◆ chain_order

size_t vg::ZipCodeForest::sort_value_t::chain_order
private

The +0/+1/+2 offset used for chain prefix sums.

◆ code_type

ZipCode::code_type_t vg::ZipCodeForest::sort_value_t::code_type
private

The type of the snarl tree structure.

◆ sort_value

size_t vg::ZipCodeForest::sort_value_t::sort_value
private

Value to sort on.


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