roadrunner
2.6.0
Fast simulator for SBML models
|
This class is frozen, no new features A dictionary interface that objects can implement. More...
#include <Dictionary.h>
Public Member Functions | |
virtual void | setItem (const std::string &key, const rr::Setting &value)=0 |
Set the value for an arbitrary key. More... | |
virtual Setting | getItem (const std::string &key) const =0 |
Get a value. More... | |
virtual bool | hasKey (const std::string &key) const =0 |
is there a key matching this name. | |
virtual size_t | deleteItem (const std::string &key)=0 |
remove a value | |
virtual std::vector< std::string > | getKeys () const =0 |
list of keys in this object. | |
virtual | ~Dictionary () |
Pure virtual interface, you should never have to delete an instance of this type directly. | |
This class is frozen, no new features A dictionary interface that objects can implement.
These are automatically mapped to python dictionaries.
|
pure virtual |
Get a value.
Variants are POD. If the key does not exist, an std::exception will be thrown.
The Setting object has the assigment operator overloaded so it will automatically convert to any native C++ object. If the Setting can not be converted, it will raise an exception, i.e.
Implemented in rr::LoadSBMLOptions, and rr::BasicDictionary.
|
pure virtual |
Set the value for an arbitrary key.
The Setting object has a large number of creation operators so you only have to give the value as native C++ object i.e.
Implemented in rr::LoadSBMLOptions, and rr::BasicDictionary.