template<class T>
class simgrid::config::Flag< T >
A variable bound to a CLI option.
static simgrid::config::flag<int> answer("answer", "Expected answer", 42);
static simgrid::config::flag<std::string> name("name", "Ford Perfect", "John Doe");
static simgrid::config::flag<double> gamma("gamma", "Gamma factor", 1.987);
|
| | Flag (const char *name, const char *desc, T value) |
| | Constructor. More...
|
| |
| | Flag (const char *name, std::initializer_list< const char *> aliases, const char *desc, T value) |
| | Constructor taking also an array of aliases for name. More...
|
| |
| template<class F > |
| | Flag (const char *name, const char *desc, T value, F callback) |
| |
| template<class F > |
| | Flag (const char *name, std::initializer_list< const char *> aliases, const char *desc, T value, F callback) |
| |
| template<class F > |
| | Flag (const char *name, const char *desc, T value, std::map< T, std::string > valid_values, F callback) |
| |
| template<class F > |
| | Flag (const char *name, std::initializer_list< const char *> aliases, const char *desc, T value, std::map< T, std::string > valid_values, F callback) |
| |
| | Flag (Flag const &)=delete |
| |
| Flag & | operator= (Flag const &)=delete |
| |
| T & | get () |
| |
| T const & | get () const |
| |
| std::string | get_name () const |
| |
| | operator T & () |
| |
| | operator T const & () const |
| |
| template<class U > |
| Flag & | operator= (U const &that) |
| |
| template<class U > |
| Flag & | operator= (U &&that) |
| |
| template<class U > |
| bool | operator== (U const &that) const |
| |
| template<class U > |
| bool | operator!= (U const &that) const |
| |
| template<class U > |
| bool | operator< (U const &that) const |
| |
| template<class U > |
| bool | operator> (U const &that) const |
| |
| template<class U > |
| bool | operator<= (U const &that) const |
| |
| template<class U > |
| bool | operator>= (U const &that) const |
| |