|
| 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) |
| |
| template<class T > |
| T const & | getConfig (const char *name) |
| |
| template int const & | getConfig< int > (const char *name) |
| |
| template double const & | getConfig< double > (const char *name) |
| |
| template bool const & | getConfig< bool > (const char *name) |
| |
| template std::string const & | getConfig< std::string > (const char *name) |
| |
| template<class T > |
| void | declareFlag (const char *name, const char *description, T value, std::function< void(const T &)> callback=std::function< void(const T &)>()) |
| | Register a configuration flag. More...
|
| |
| template void | declareFlag (const char *name, const char *description, int value, std::function< void(int const &)> callback) |
| |
| template void | declareFlag (const char *name, const char *description, double value, std::function< void(double const &)> callback) |
| |
| template void | declareFlag (const char *name, const char *description, bool value, std::function< void(bool const &)> callback) |
| |
| template void | declareFlag (const char *name, const char *description, std::string value, std::function< void(std::string const &)> callback) |
| |
| void | alias (const char *realname, const char *aliasname) |
| |
| void | alias (std::initializer_list< const char *> names) |
| |
| template<class T > |
| void | bindFlag (T &value, const char *name, const char *description) |
| | Bind a variable to configuration flag. More...
|
| |
| template<class T > |
| void | bindFlag (T &value, std::initializer_list< const char *> names, const char *description) |
| |
| 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, std::initializer_list< const char *> names, 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) |
| |
| 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...
|
| |
| static void | xbt_cfgelm_free (void *data) |
| |
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, |
|
|
std::initializer_list< const char *> |
names, |
|
|
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)")
});