|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
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 Prefect", "John Doe");
static simgrid::config::flag<double> gamma("gamma", "Gamma factor", 1.987);
#include <config.hpp>
Public Member Functions | |
| Flag (const char *name, const char *desc, T value) | |
| Constructor. More... | |
| template<class F > | |
| Flag (const char *name, const char *desc, T value, F callback) | |
| Flag (Flag const &)=delete | |
| Flag & | operator= (Flag const &)=delete |
| T & | get () |
| T const & | get () 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 |
|
inline |
|
inline |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |