vg
tools for working with variation graphs
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
vg::subcommand::BaseValuation Struct Referenceabstract

#include <options.hpp>

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

Public Member Functions

 BaseValuation (const std::string &option)
 Make a new BaseValuation for the given option. More...
 
virtual ~BaseValuation ()=default
 
virtual std::unique_ptr< BaseValuationclone () const =0
 BaseValuations can be cloned, retaining their derived type. More...
 

Public Attributes

std::string option
 Long option to give a value to. More...
 

Protected Member Functions

 BaseValuation (const BaseValuation &other)=default
 
 BaseValuation (BaseValuation &&other)=default
 
BaseValuationoperator= (const BaseValuation &other)=default
 
BaseValuationoperator= (BaseValuation &&other)=default
 

Detailed Description

Represents an option being set to a value. Base interface.

Constructor & Destructor Documentation

◆ BaseValuation() [1/3]

vg::subcommand::BaseValuation::BaseValuation ( const std::string &  option)

Make a new BaseValuation for the given option.

◆ ~BaseValuation()

virtual vg::subcommand::BaseValuation::~BaseValuation ( )
virtualdefault

◆ BaseValuation() [2/3]

vg::subcommand::BaseValuation::BaseValuation ( const BaseValuation other)
protecteddefault

◆ BaseValuation() [3/3]

vg::subcommand::BaseValuation::BaseValuation ( BaseValuation &&  other)
protecteddefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr<BaseValuation> vg::subcommand::BaseValuation::clone ( ) const
pure virtual

BaseValuations can be cloned, retaining their derived type.

Implemented in vg::subcommand::Valuation< T >.

◆ operator=() [1/2]

BaseValuation& vg::subcommand::BaseValuation::operator= ( BaseValuation &&  other)
protecteddefault

◆ operator=() [2/2]

BaseValuation& vg::subcommand::BaseValuation::operator= ( const BaseValuation other)
protecteddefault

Member Data Documentation

◆ option

std::string vg::subcommand::BaseValuation::option

Long option to give a value to.


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