vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | Protected Member Functions | List of all members
vsmc::ProgramOption Class Referenceabstract

Option base class. More...

#include <vsmc/utility/program_option.hpp>

Public Member Functions

 ProgramOption ()=default
 
 ProgramOption (const ProgramOption &)=default
 
virtual ~ProgramOption ()
 
virtual std::string default_str () const =0
 
virtual std::string description () const =0
 
virtual bool is_bool () const =0
 
virtual bool is_vector () const =0
 
ProgramOptionoperator= (const ProgramOption &)=default
 
virtual bool set (const std::string &, const std::string &, bool, std::ostream &)=0
 
virtual bool set_default ()=0
 

Protected Member Functions

bool set_value (const std::string &name, const std::string &sval, bool *dest, bool silent, std::ostream &os)
 
bool set_value (const std::string &, const std::string &sval, std::string *dest, bool, std::ostream &)
 
template<typename T >
bool set_value (const std::string &name, const std::string &sval, T *dest, bool silent, std::ostream &os)
 

Detailed Description

Option base class.

Definition at line 63 of file program_option.hpp.

Constructor & Destructor Documentation

vsmc::ProgramOption::ProgramOption ( )
default
vsmc::ProgramOption::ProgramOption ( const ProgramOption )
default
virtual vsmc::ProgramOption::~ProgramOption ( )
inlinevirtual

Definition at line 69 of file program_option.hpp.

Member Function Documentation

virtual std::string vsmc::ProgramOption::default_str ( ) const
pure virtual
virtual std::string vsmc::ProgramOption::description ( ) const
pure virtual
virtual bool vsmc::ProgramOption::is_bool ( ) const
pure virtual
virtual bool vsmc::ProgramOption::is_vector ( ) const
pure virtual
ProgramOption& vsmc::ProgramOption::operator= ( const ProgramOption )
default
virtual bool vsmc::ProgramOption::set ( const std::string &  ,
const std::string &  ,
bool  ,
std::ostream &   
)
pure virtual
virtual bool vsmc::ProgramOption::set_default ( )
pure virtual
bool vsmc::ProgramOption::set_value ( const std::string &  name,
const std::string &  sval,
bool *  dest,
bool  silent,
std::ostream &  os 
)
inlineprotected

Definition at line 80 of file program_option.hpp.

bool vsmc::ProgramOption::set_value ( const std::string &  ,
const std::string &  sval,
std::string *  dest,
bool  ,
std::ostream &   
)
inlineprotected

Definition at line 138 of file program_option.hpp.

template<typename T >
bool vsmc::ProgramOption::set_value ( const std::string &  name,
const std::string &  sval,
T *  dest,
bool  silent,
std::ostream &  os 
)
inlineprotected

Definition at line 147 of file program_option.hpp.