|
bool | parseBool (const char *value) |
|
double | parseDouble (const char *value) |
|
long int | parseLong (const char *value) |
|
template<class T > |
T | parse (const char *value) |
|
template<class T > |
std::string | to_string (T &&value) |
|
std::string const & | to_string (std::string &value) |
|
std::string const & | to_string (std::string const &value) |
|
std::string | to_string (std::string &&value) |
|
void | declareFlag (const char *name, const char *description, std::function< void(const char *value)> callback) |
| Register a configuration flag. More...
|
|
template<class T > |
void | bindFlag (T &value, const char *name, const char *description) |
| Bind a variable to configuration flag. More...
|
|
template<class T , class F > |
std::enable_if< std::is_same< T, typename std::remove_cv< decltype(std::declval< F >)(std::declval< const char * >))) >::type >::value, void >::type | bindFlag (T &value, const char *name, const char *description, F callback) |
| Bind a variable to configuration flag. More...
|
|
template<class T , class F > |
std::enable_if< std::is_same< void, decltype(std::declval< F >)(std::declval< const T & >)))>::value, void >::type | bindFlag (T &value, const char *name, const char *description, F callback) |
| Bind a variable to configuration flag. More...
|
|
template<class T , class F > |
std::enable_if< std::is_same< bool, decltype(std::declval< F >)(std::declval< const T & >)))>::value, void >::type | bindFlag (T &value, const char *name, const char *description, F callback) |
| Bind a variable to configuration flag. More...
|
|
template<class T , class F >
std::enable_if<std::is_same< void, decltype( std::declval<F>)(std::declval<const T&>)) )>::value, void>::type simgrid::config::bindFlag |
( |
T & |
value, |
|
|
const char * |
name, |
|
|
const char * |
description, |
|
|
F |
callback |
|
) |
| |
Bind a variable to configuration flag.
static int x;
simgrid::config::bindFlag(a, "x", [](int x) {
if (x < x_min || x => x_max)
throw std::range_error("must be in [x_min, x_max)")
});