class
#include <UniverseConfiguration.hpp>
UniverseConfiguration Contents
The UniverseConfiguration provides all information for configuring a particular element of an IUniverseConfigurableSolver.
Constructors, destructors, conversion operators
- UniverseConfiguration(std::string name) explicit
Public functions
- auto getName() const -> const std::string&
-
template<typename T>void addParameter(const std::string& key, const std::string& type, T value)
- auto getParameters() const -> const std::vector<std::string>&
- auto getTypeOf(const std::string& key) -> const std::string&
-
template<typename T>auto get(const std::string& key) -> T
Function documentation
Universe:: UniverseConfiguration:: UniverseConfiguration(std::string name) explicit
Parameters | |
---|---|
name | The name of the strategy being configured. |
Creates a new UniverseConfiguration.
const std::string& Universe:: UniverseConfiguration:: getName() const
Returns | The name of the strategy. |
---|
Gives the name of the strategy being configured.
template<typename T>
void Universe:: UniverseConfiguration:: addParameter(const std::string& key,
const std::string& type,
T value)
Parameters | |
---|---|
key | The key identifying the parameter. |
type | The type of the parameter. |
value | The value for the parameter. |
Adds a parameter to this configuration.
const std::vector<std::string>& Universe:: UniverseConfiguration:: getParameters() const
Returns | The recognized parameter names. |
---|
Gives the parameter for this strategy.
const std::string& Universe:: UniverseConfiguration:: getTypeOf(const std::string& key)
Parameters | |
---|---|
key | The key identifying the parameter. |
Returns | The type of the parameter. |
Gives the type of the given parameter.
template<typename T>
T Universe:: UniverseConfiguration:: get(const std::string& key)
Parameters | |
---|---|
key | The key identifying the parameter. |
Returns | The value of the parameter. |
Gives the value of the given parameter.