vg
tools for working with variation graphs
Loading...
Searching...
No Matches
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.
virtual ~BaseValuation ()=default
virtual std::unique_ptr< BaseValuation > clone () const =0
 BaseValuations can be cloned, retaining their derived type.

Public Attributes

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

Protected Member Functions

 BaseValuation (const BaseValuation &other)=default
 BaseValuation (BaseValuation &&other)=default
BaseValuation & operator= (const BaseValuation &other)=default
BaseValuation & operator= (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: