ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
get_value.hpp File Reference
#include "Exception.hpp"
#include "ObjectHandle.hpp"
#include "Variant.hpp"
#include <utils/demangle.hpp>
#include <boost/algorithm/string/join.hpp>
#include <algorithm>
#include <cstddef>
#include <memory>
#include <set>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
+ Include dependency graph for get_value.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ScriptInterface
 

Functions

template<typename T >
ScriptInterface::get_value (Variant const &v)
 Extract value of specific type T from a Variant.
 
template<typename T >
ScriptInterface::get_value (VariantMap const &vals, std::string const &name)
 Get a value from a VariantMap by name, or throw if it does not exist or is not convertible to the target type.
 
template<typename T >
ScriptInterface::get_value_or (VariantMap const &vals, std::string const &name, T const &default_)
 Get a value from a VariantMap by name, or return a default value if it does not exist.
 
template<typename T , typename... Types, typename... ArgNames>
std::shared_ptr< T > ScriptInterface::make_shared_from_args (VariantMap const &vals, ArgNames &&...args)
 Make a new std::shared_ptr<T> with arguments extracted from a VariantMap.
 
template<typename T >
void ScriptInterface::set_from_args (T &dst, VariantMap const &vals, const char *name)