vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::subcommand::Valuation< T > Struct Template Reference

#include <options.hpp>

Inheritance diagram for vg::subcommand::Valuation< T >:
vg::subcommand::BaseValuation

Public Member Functions

 Valuation (const std::string &option, const T &value)
 Make a preset entry that sets the given long option to the given value. More...
 
virtual ~Valuation ()=default
 
- Public Member Functions inherited from vg::subcommand::BaseValuation
 BaseValuation (const std::string &option)
 Make a new BaseValuation for the given option. More...
 
virtual ~BaseValuation ()=default
 

Public Attributes

value
 Value for the option. More...
 
- Public Attributes inherited from vg::subcommand::BaseValuation
std::string option
 Long option to give a value to. More...
 

Detailed Description

template<typename T>
struct vg::subcommand::Valuation< T >

Represents an option being set to a value. Actually has the value.

Constructor & Destructor Documentation

◆ Valuation()

template<typename T >
vg::subcommand::Valuation< T >::Valuation ( const std::string &  option,
const T &  value 
)
inline

Make a preset entry that sets the given long option to the given value.

◆ ~Valuation()

template<typename T >
virtual vg::subcommand::Valuation< T >::~Valuation ( )
virtualdefault

Member Data Documentation

◆ value

template<typename T >
T vg::subcommand::Valuation< T >::value

Value for the option.


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