vg
tools for working with variation graphs
|
#include <options.hpp>
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 |
virtual std::unique_ptr< BaseValuation > | clone () const |
Valuations can be cloned, retaining their derived type. More... | |
Valuation (const Valuation< T > &other)=default | |
Valuation (Valuation< T > &&other)=default | |
Valuation< T > & | operator= (const Valuation< T > &other)=default |
Valuation< T > & | operator= (Valuation< T > &&other)=default |
![]() | |
BaseValuation (const std::string &option) | |
Make a new BaseValuation for the given option. More... | |
virtual | ~BaseValuation ()=default |
Public Attributes | |
T | value |
Value for the option. More... | |
![]() | |
std::string | option |
Long option to give a value to. More... | |
Additional Inherited Members | |
![]() | |
BaseValuation (const BaseValuation &other)=default | |
BaseValuation (BaseValuation &&other)=default | |
BaseValuation & | operator= (const BaseValuation &other)=default |
BaseValuation & | operator= (BaseValuation &&other)=default |
Represents an option being set to a value. Actually has the value.
vg::subcommand::Valuation< T >::Valuation | ( | const std::string & | option, |
const T & | value | ||
) |
Make a preset entry that sets the given long option to the given value.
|
virtualdefault |
|
default |
|
default |
|
virtual |
Valuations can be cloned, retaining their derived type.
Implements vg::subcommand::BaseValuation.
|
default |
|
default |
T vg::subcommand::Valuation< T >::value |
Value for the option.