vg
tools for working with variation graphs
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
vg::algorithms::TracedScore Class Reference

#include <chain_items.hpp>

Public Member Functions

void max_in (const vector< TracedScore > &options, size_t option_number)
 Max in a score from a DP table. If it wins, record provenance. More...
 
TracedScore add_points (int adjustment) const
 Add (or remove) points along a route to somewhere. Return a modified copy. More...
 
bool operator== (const TracedScore &other) const
 Compare for equality. More...
 
bool operator!= (const TracedScore &other) const
 Compare for inequality. More...
 
bool operator< (const TracedScore &other) const
 Compare for less-than. More...
 
bool operator> (const TracedScore &other) const
 Compare for greater-than. More...
 

Static Public Member Functions

static size_t nowhere ()
 
static TracedScore unset ()
 
static TracedScore score_from (const vector< TracedScore > &options, size_t option_number)
 Get a score from a table and record provenance in it. More...
 

Public Attributes

int score
 
size_t source
 

Member Function Documentation

◆ add_points()

TracedScore vg::algorithms::TracedScore::add_points ( int  adjustment) const

Add (or remove) points along a route to somewhere. Return a modified copy.

◆ max_in()

void vg::algorithms::TracedScore::max_in ( const vector< TracedScore > &  options,
size_t  option_number 
)

Max in a score from a DP table. If it wins, record provenance.

◆ nowhere()

static size_t vg::algorithms::TracedScore::nowhere ( )
inlinestatic

What is the sentinel for an empty provenance? Use a function instead of a constant because that's easier when we're just a header.

◆ operator!=()

bool vg::algorithms::TracedScore::operator!= ( const TracedScore other) const
inline

Compare for inequality.

◆ operator<()

bool vg::algorithms::TracedScore::operator< ( const TracedScore other) const
inline

Compare for less-than.

◆ operator==()

bool vg::algorithms::TracedScore::operator== ( const TracedScore other) const
inline

Compare for equality.

◆ operator>()

bool vg::algorithms::TracedScore::operator> ( const TracedScore other) const
inline

Compare for greater-than.

◆ score_from()

TracedScore vg::algorithms::TracedScore::score_from ( const vector< TracedScore > &  options,
size_t  option_number 
)
static

Get a score from a table and record provenance in it.

◆ unset()

static TracedScore vg::algorithms::TracedScore::unset ( )
inlinestatic

What's the default value for an empty table cell? Use a function instead of a constant because that's easier when we're just a header.

Member Data Documentation

◆ score

int vg::algorithms::TracedScore::score

◆ source

size_t vg::algorithms::TracedScore::source

The documentation for this class was generated from the following files: