SimGrid
3.13
Versatile Simulation of Distributed Systems
|
A variable bound to a CLI option. More...
#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 | |
Flag & | operator= (T const &that) |
Flag & | operator= (T &&that) |
bool | operator== (T const &that) const |
bool | operator!= (T const &that) const |
bool | operator< (T const &that) const |
bool | operator> (T const &that) const |
bool | operator<= (T const &that) const |
bool | operator>= (T const &that) const |
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);
|
inline |
|
inline |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |