vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | List of all members
vsmc::ProgramOptionVector< T > Class Template Reference

Option with multiple values. More...

#include <vsmc/utility/program_option.hpp>

Public Member Functions

 ProgramOptionVector (const std::string &desc, std::vector< T > *ptr)
 
template<typename V >
 ProgramOptionVector (const std::string &desc, std::vector< T > *ptr, V val)
 
ProgramOptionclone () const
 
bool is_vector () const
 
bool set (const std::string &oname, const std::string &sval, bool silent, std::ostream &os)
 
bool set_default ()
 
- Public Member Functions inherited from vsmc::ProgramOptionDefault< T >
 ProgramOptionDefault (const std::string &desc)
 
template<typename V >
 ProgramOptionDefault (const std::string &desc, V val)
 
std::string default_str () const
 
std::string description () const
 
bool is_bool () const
 
- Public Member Functions inherited from vsmc::ProgramOption
 ProgramOption ()
 
 ProgramOption (const ProgramOption &)
 
virtual ~ProgramOption ()
 
ProgramOptionoperator= (const ProgramOption &)
 

Additional Inherited Members

- Protected Member Functions inherited from vsmc::ProgramOptionDefault< T >
bool set_value_default (T *dest)
 
- Protected Member Functions inherited from vsmc::ProgramOption
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

template<typename T>
class vsmc::ProgramOptionVector< T >

Option with multiple values.

Definition at line 281 of file program_option.hpp.

Constructor & Destructor Documentation

template<typename T>
vsmc::ProgramOptionVector< T >::ProgramOptionVector ( const std::string &  desc,
std::vector< T > *  ptr 
)
inline

Definition at line 284 of file program_option.hpp.

template<typename T>
template<typename V >
vsmc::ProgramOptionVector< T >::ProgramOptionVector ( const std::string &  desc,
std::vector< T > *  ptr,
val 
)
inline

Definition at line 290 of file program_option.hpp.

Member Function Documentation

template<typename T>
ProgramOption* vsmc::ProgramOptionVector< T >::clone ( ) const
inlinevirtual

Implements vsmc::ProgramOption.

Definition at line 318 of file program_option.hpp.

template<typename T>
bool vsmc::ProgramOptionVector< T >::is_vector ( ) const
inlinevirtual

Implements vsmc::ProgramOption.

Definition at line 295 of file program_option.hpp.

template<typename T>
bool vsmc::ProgramOptionVector< T >::set ( const std::string &  oname,
const std::string &  sval,
bool  silent,
std::ostream &  os 
)
inlinevirtual

Implements vsmc::ProgramOption.

Definition at line 297 of file program_option.hpp.

template<typename T>
bool vsmc::ProgramOptionVector< T >::set_default ( )
inlinevirtual

Implements vsmc::ProgramOption.

Definition at line 308 of file program_option.hpp.