COPASI API
4.16.103
|
#include <SBMLReference.h>
Public Types | |
typedef std::map< std::string, std::string >::const_iterator | const_iterator |
Public Member Functions | |
bool | add (const std::string &id, const std::string &key) |
const_iterator | beginCOPASIkey () const |
const_iterator | beginSBMLid () const |
const_iterator | endCOPASIkey () const |
const_iterator | endSBMLid () const |
const std::string & | getCOPASIkey (const std::string &id) const |
const std::string & | getSBMLid (const std::string &key) const |
const std::string & | getURL () const |
bool | removeCOPASIkey (const std::string &key) |
bool | removeSBMLid (const std::string &id) |
SBMLReference () | |
SBMLReference (const SBMLReference &src) | |
bool | setURL (const std::string &url) |
~SBMLReference () | |
Private Attributes | |
std::map< std::string, std::string > | mIdToKey |
std::map< std::string, std::string > | mKeyToId |
std::string | mURL |
Static Private Attributes | |
static std::string | NotFound = "" |
Definition at line 19 of file SBMLReference.h.
typedef std::map<std::string, std::string>::const_iterator SBMLReference::const_iterator |
Definition at line 22 of file SBMLReference.h.
SBMLReference::SBMLReference | ( | ) |
SBMLReference::SBMLReference | ( | const SBMLReference & | src | ) |
SBMLReference::~SBMLReference | ( | ) |
bool SBMLReference::add | ( | const std::string & | id, |
const std::string & | key | ||
) |
Add an associated SBMLid, COPASIkey pair to the references.
const | std::string & id |
const | std::string & key |
Definition at line 61 of file SBMLReference.cpp.
References mIdToKey, and mKeyToId.
SBMLReference::const_iterator SBMLReference::beginCOPASIkey | ( | ) | const |
SBMLReference::const_iterator SBMLReference::beginSBMLid | ( | ) | const |
SBMLReference::const_iterator SBMLReference::endCOPASIkey | ( | ) | const |
SBMLReference::const_iterator SBMLReference::endSBMLid | ( | ) | const |
const std::string & SBMLReference::getCOPASIkey | ( | const std::string & | id | ) | const |
Retrieve the COPASI key which is mapped to the given SBML Id.
const | std::string & id |
Definition at line 52 of file SBMLReference.cpp.
References mIdToKey, and NotFound.
const std::string & SBMLReference::getSBMLid | ( | const std::string & | key | ) | const |
Retrieve the SBML Id which is mapped to the given COPASI key.
const | std::string & key |
Definition at line 43 of file SBMLReference.cpp.
References mKeyToId, and NotFound.
const std::string & SBMLReference::getURL | ( | ) | const |
Retrieve the URL of the referenced SBML file
Definition at line 40 of file SBMLReference.cpp.
References mURL.
bool SBMLReference::removeCOPASIkey | ( | const std::string & | key | ) |
Remove the reference of the given key
const | std::string & key |
Definition at line 88 of file SBMLReference.cpp.
References mIdToKey, and mKeyToId.
bool SBMLReference::removeSBMLid | ( | const std::string & | id | ) |
Remove the reference of the given id
const | std::string & id |
Definition at line 72 of file SBMLReference.cpp.
References mIdToKey, and mKeyToId.
bool SBMLReference::setURL | ( | const std::string & | url | ) |
Set URL of the refernced SBML file.
const | std::string & id |
Definition at line 34 of file SBMLReference.cpp.
References mURL.
|
private |
Definition at line 120 of file SBMLReference.h.
Referenced by add(), beginSBMLid(), endSBMLid(), getCOPASIkey(), removeCOPASIkey(), and removeSBMLid().
|
private |
Definition at line 125 of file SBMLReference.h.
Referenced by add(), beginCOPASIkey(), endCOPASIkey(), getSBMLid(), removeCOPASIkey(), and removeSBMLid().
|
private |
Definition at line 115 of file SBMLReference.h.
|
staticprivate |
Definition at line 127 of file SBMLReference.h.
Referenced by getCOPASIkey(), and getSBMLid().