libRoadRunner C++ API  1.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | 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 map to store the values. More...

#include <Dictionary.h>

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

Public Member Functions

virtual void setItem (const std::string &key, const rr::Variant &value)
 
virtual Variant getItem (const std::string &key) const
 
virtual bool hasKey (const std::string &key) const
 
virtual int deleteItem (const std::string &key)
 
virtual std::vector< std::string > getKeys () const
 
virtual ~BasicDictionary ()
 
- Public Member Functions inherited from rr::Dictionary
virtual ~Dictionary ()
 

Detailed Description

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

Constructor & Destructor Documentation

virtual rr::BasicDictionary::~BasicDictionary ( )
inlinevirtual

Pure virtual interface, you should never have to delete an instance of this type directly.

Member Function Documentation

int rr::BasicDictionary::deleteItem ( const std::string &  key)
virtual

remove a value

Implements rr::Dictionary.

Reimplemented in rr::LoadSBMLOptions.

Variant rr::BasicDictionary::getItem ( const std::string &  key) const
virtual

gets an item from the internal unordered map.

Implements rr::Dictionary.

Reimplemented in rr::LoadSBMLOptions.

std::vector< std::string > rr::BasicDictionary::getKeys ( ) const
virtual

list of keys in this object.

Implements rr::Dictionary.

Reimplemented in rr::LoadSBMLOptions.

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

is there a key matching this name.

true if this key exists, false otherwise.

Implements rr::Dictionary.

Reimplemented in rr::LoadSBMLOptions.

void rr::BasicDictionary::setItem ( const std::string &  key,
const rr::Variant value 
)
virtual

sets an item in the internal unordered map.

Implements rr::Dictionary.

Reimplemented in rr::SimulateOptions, and rr::LoadSBMLOptions.


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