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
 
virtual std::unique_ptr< BaseValuationclone () 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
 
- 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...
 

Additional Inherited Members

- Protected Member Functions inherited from vg::subcommand::BaseValuation
 BaseValuation (const BaseValuation &other)=default
 
 BaseValuation (BaseValuation &&other)=default
 
BaseValuationoperator= (const BaseValuation &other)=default
 
BaseValuationoperator= (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
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: