roadrunner  2.6.0
Fast simulator for SBML models
Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
rr::BasicDictionary Class Reference

This class is frozen, no new features Basic implementation of the Dictionary interface which uses a std unordered std::map to store the values. More...

#include <Dictionary.h>

Inheritance diagram for rr::BasicDictionary:
rr::Dictionary rr::LoadSBMLOptions

Public Types

using item = std::pair< std::string, Setting >
 

Public Member Functions

 BasicDictionary (std::initializer_list< item > initializerList)
 
void setItem (const std::string &key, const rr::Setting &value) override
 sets an item in the internal unordered std::map.
 
Setting getItem (const std::string &key) const override
 gets an item from the internal unordered std::map.
 
bool hasKey (const std::string &key) const override
 is there a key matching this name. More...
 
size_t deleteItem (const std::string &key) override
 remove a value
 
std::vector< std::string > getKeys () const override
 list of keys in this object.
 
 ~BasicDictionary () override=default
 Pure virtual interface, you should never have to delete an instance of this type directly.
 
- Public Member Functions inherited from rr::Dictionary
virtual ~Dictionary ()
 Pure virtual interface, you should never have to delete an instance of this type directly.
 

Protected Types

typedef std::unordered_map< std::string, SettingVariantMap
 

Protected Attributes

VariantMap items
 

Detailed Description

This class is frozen, no new features Basic implementation of the Dictionary interface which uses a std unordered std::map to store the values.

Member Function Documentation

◆ hasKey()

bool rr::BasicDictionary::hasKey ( const std::string &  key) const
overridevirtual

is there a key matching this name.

@retruns true if this key exists, false otherwise.

Implements rr::Dictionary.

Reimplemented in rr::LoadSBMLOptions.


The documentation for this class was generated from the following files: