|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
#include <types.hpp>
Public Member Functions | |
| node (const std::string &k) | |
| void | add_item (param *p) |
| void | add_items (std::vector< param *> items) |
| param * | get_item (const std::string &k) |
| void | remove_item (const std::string &k) |
| value_map * | get_values () |
| int | getint (const std::string &key) |
| int | getint (int i) |
| double | getdbl (const std::string &key) |
| double | getdbl (int i) |
| std::string | getstr (const std::string &key) |
| std::string | getstr (int i) |
Public Member Functions inherited from inst::param | |
| param (const std::string &k, inst_t t) | |
| inst_t | get_type () |
| std::string | get_key () |
Private Attributes | |
| value_map | values |
This represents concrete values at one 'level' of the search space. This could include a combination of both parameters and further nodes.
| inst::node::node | ( | const std::string & | k | ) |
The constructor k The key for this node.
| void inst::node::add_item | ( | param * | p | ) |
Add a single parameter to the list.
| p | The parameter to add. |
| void inst::node::add_items | ( | std::vector< param *> | items | ) |
Add a vector of parameter in one go.
| items | A reference to the vector of items to add |
| inst::param * inst::node::get_item | ( | const std::string & | k | ) |
Returns a copy of the specified parameter.
| k | The unique parameter key. |
|
inline |
Return all the values
| void inst::node::remove_item | ( | const std::string & | k | ) |
Removes a parameter from the list; fails silently on error.
| k | The unique key of that parameter. |
|
private |
An unordered map of concrete values and nodes at this 'level' of the search space, identified by their key
1.8.13