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

Program option base class. More...

#include <vsmc/utility/program_option.hpp>

Public Member Functions

 ProgramOption ()
 
 ProgramOption (const ProgramOption &)
 
virtual ~ProgramOption ()
 
virtual ProgramOptionclone () const =0
 
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 &)
 
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 &oname, const std::string &sval, bool *dest, bool silent, std::ostream &os)
 
template<typename T >
bool set_value (const std::string &oname, const std::string &sval, T *dest, bool silent, std::ostream &os)
 

Detailed Description

Program option base class.

Definition at line 60 of file program_option.hpp.

Constructor & Destructor Documentation

vsmc::ProgramOption::ProgramOption ( )
inline

Definition at line 63 of file program_option.hpp.

vsmc::ProgramOption::ProgramOption ( const ProgramOption )
inline

Definition at line 64 of file program_option.hpp.

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

Definition at line 66 of file program_option.hpp.

Member Function Documentation

virtual ProgramOption* vsmc::ProgramOption::clone ( ) const
pure virtual
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 )
inline

Definition at line 65 of file program_option.hpp.

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 &  oname,
const std::string &  sval,
bool *  dest,
bool  silent,
std::ostream &  os 
)
inlineprotected

Definition at line 78 of file program_option.hpp.

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

Definition at line 137 of file program_option.hpp.