vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::alignment_index_t Struct Reference

Public Member Functions

read_alignment_index_t without_read ()
 Drop the read field. More...
 
template<typename NestedArray >
auto lookup_in (NestedArray &a) const -> typename std::add_lvalue_reference< decltype(a[0][0][0])>::type
 
bool operator== (const alignment_index_t &other)
 
bool operator!= (const alignment_index_t &other)
 

Public Attributes

size_t fragment
 
size_t alignment
 
bool read
 

Detailed Description

Type to point to an alignment of either read <fragment index, alignment_index, read number (0 or 1)>

Member Function Documentation

◆ lookup_in()

template<typename NestedArray >
auto vg::alignment_index_t::lookup_in ( NestedArray &  a) const -> typename std::add_lvalue_reference<decltype(a[0][0][0])>::type
inline

Allow looking up this index in a structure organized by fragment, read, and alignment, such as in alignments, or alignment_indices.

◆ operator!=()

bool vg::alignment_index_t::operator!= ( const alignment_index_t other)
inline

◆ operator==()

bool vg::alignment_index_t::operator== ( const alignment_index_t other)
inline

◆ without_read()

read_alignment_index_t vg::alignment_index_t::without_read ( )
inline

Drop the read field.

Member Data Documentation

◆ alignment

size_t vg::alignment_index_t::alignment

◆ fragment

size_t vg::alignment_index_t::fragment

◆ read

bool vg::alignment_index_t::read

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