vg
tools for working with variation graphs
Loading...
Searching...
No Matches
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.
virtual ~Valuation ()=default
virtual std::unique_ptr< BaseValuation > clone () const
 Valuations can be cloned, retaining their derived type.
 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
Public Member Functions inherited from vg::subcommand::BaseValuation
 BaseValuation (const std::string &option)
 Make a new BaseValuation for the given option.
virtual ~BaseValuation ()=default

Public Attributes

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

Additional Inherited Members

Protected Member Functions inherited from vg::subcommand::BaseValuation
 BaseValuation (const BaseValuation &other)=default
 BaseValuation (BaseValuation &&other)=default
BaseValuation & operator= (const BaseValuation &other)=default
BaseValuation & operator= (BaseValuation &&other)=default

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() [1/3]

template<typename T>
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.

◆ ~Valuation()

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

◆ Valuation() [2/3]

template<typename T>
vg::subcommand::Valuation< T >::Valuation ( const Valuation< T > & other)
default

◆ Valuation() [3/3]

template<typename T>
vg::subcommand::Valuation< T >::Valuation ( Valuation< T > && other)
default

Member Function Documentation

◆ clone()

template<typename T>
std::unique_ptr< BaseValuation > vg::subcommand::Valuation< T >::clone ( ) const
virtual

Valuations can be cloned, retaining their derived type.

Implements vg::subcommand::BaseValuation.

◆ operator=() [1/2]

template<typename T>
Valuation< T > & vg::subcommand::Valuation< T >::operator= ( const Valuation< T > & other)
default

◆ operator=() [2/2]

template<typename T>
Valuation< T > & vg::subcommand::Valuation< T >::operator= ( Valuation< T > && other)
default

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: