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

Public Member Functions

void push (uint32_t value)
 
bool empty () const
 
size_t size () const
 
const uint32_t & top () const
 
uint32_t & top ()
 
void pop ()
 

Public Attributes

size_t item_count = 0
 
uint32_t inline_items [NUM_INLINE]
 
std::shared_ptr< std::vector< uint32_t > > additional_items
 

Static Public Attributes

const static size_t NUM_INLINE = 4
 

Detailed Description

We need a stack-like type that can be copied or referred to quickly, since we consider MatchPos objects for each WFANode along a path when doing find_pos(), and they contain the path. This path type assumes that we only ever push and then pop.

Member Function Documentation

◆ empty()

bool vg::MatchPos::PathList::empty ( ) const
inline

◆ pop()

void vg::MatchPos::PathList::pop ( )
inline

◆ push()

void vg::MatchPos::PathList::push ( uint32_t  value)
inline

◆ size()

size_t vg::MatchPos::PathList::size ( ) const
inline

◆ top() [1/2]

uint32_t& vg::MatchPos::PathList::top ( )
inline

◆ top() [2/2]

const uint32_t& vg::MatchPos::PathList::top ( ) const
inline

Member Data Documentation

◆ additional_items

std::shared_ptr<std::vector<uint32_t> > vg::MatchPos::PathList::additional_items

◆ inline_items

uint32_t vg::MatchPos::PathList::inline_items[NUM_INLINE]

◆ item_count

size_t vg::MatchPos::PathList::item_count = 0

◆ NUM_INLINE

const static size_t vg::MatchPos::PathList::NUM_INLINE = 4
static

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