COPASI API
4.40.278
|
#include <CCommonName.h>
Public Member Functions | |
CCommonName () | |
CCommonName (const CCommonName &src) | |
CCommonName (const char *name) | |
CCommonName (const std::string &name) | |
std::string::size_type | findNext (const std::string &toFind, const std::string::size_type &pos=0) const |
std::string::size_type | findPrevious (const std::string &toFind, const std::string::size_type &pos=std::string::npos) const |
size_t | getElementIndex (const size_t &pos=0) const |
std::string | getElementName (const size_t &pos, const bool &unescape=true) const |
std::string | getObjectName () const |
std::string | getObjectType () const |
CCommonName | getPrimary () const |
CCommonName | getRemainder () const |
void | split (CCommonName &parentCN, std::string &objectType, std::string &objectName) const |
~CCommonName () | |
Static Public Member Functions | |
static std::string | compartmentNameFromCN (const CCommonName &cn) |
static std::string | construct (const CCommonName &parent, const std::string &objectType, const std::string &objectName) |
static std::string | escape (const std::string &name) |
static std::string | fromData (const CData &data) |
static std::string | nameFromCN (const CCommonName &cn) |
static std::string | unescape (const std::string &name) |
Private Member Functions | |
void | fixSpelling () |
CCommonName::CCommonName | ( | ) |
Default Constructor
Referenced by getRemainder().
CCommonName::CCommonName | ( | const CCommonName & | src | ) |
Copy Constructor
const | CRegisteredCommonName & src |
CCommonName::~CCommonName | ( | ) |
Destructor
CCommonName::CCommonName | ( | const char * | name | ) |
CCommonName::CCommonName | ( | const std::string & | name | ) |
|
static |
References split().
|
static |
References escape(), and split().
Referenced by fromData().
|
static |
References toBeEscaped.
Referenced by CDataVectorN< CType >::applyData(), construct(), CReactionInterface::createUndoData(), CDataObject::getCN(), CCopasiParameter::getCN(), CDataArray::getObject(), CUndoData::getObject(), CMetabNameInterface::getSpeciesCN(), CRegisteredCommonName::sanitizeObjectNames(), CDataArray::setAnnotationString(), CDataObject::setObjectName(), split(), and CArrayElementReference::updateObjectName().
std::string::size_type CCommonName::findNext | ( | const std::string & | toFind, |
const std::string::size_type & | pos = 0 |
||
) | const |
Referenced by getElementName(), getObjectName(), getObjectType(), getPrimary(), getRemainder(), and CRegisteredCommonName::sanitizeObjectNames().
std::string::size_type CCommonName::findPrevious | ( | const std::string & | toFind, |
const std::string::size_type & | pos = std::string::npos |
||
) | const |
Referenced by split().
|
private |
Referenced by CCommonName().
|
static |
References construct(), CData::getProperty(), CData::OBJECT_NAME, CData::OBJECT_PARENT_CN, CData::OBJECT_TYPE, and CDataValue::toString().
Referenced by CUndoData::change(), CUndoData::getObjectCN(), CUndoData::insert(), and CUndoData::remove().
size_t CCommonName::getElementIndex | ( | const size_t & | pos = 0 | ) | const |
References C_INVALID_INDEX, getElementName(), and strToIndex().
Referenced by CDataVectorReference< CType >::getObject(), CDataMatrixReference< CType >::getObject(), and CDataVector< CType >::getObject().
std::string CCommonName::getElementName | ( | const size_t & | pos, |
const bool & | unescape = true |
||
) | const |
std::string CCommonName::getObjectName | ( | ) | const |
std::string CCommonName::getObjectType | ( | ) | const |
CCommonName CCommonName::getPrimary | ( | ) | const |
References findNext().
Referenced by getElementName(), CMathContainer::getObject(), CObjectInterface::GetObjectFromCN(), getObjectName(), getObjectType(), and CModelExpansion::updateExpression().
CCommonName CCommonName::getRemainder | ( | ) | const |
References CCommonName(), and findNext().
Referenced by CDataArray::getObject(), CCopasiParameterGroup::getObject(), CDataContainer::getObject(), CDataVector< CType >::getObject(), CDataVectorN< CType >::getObject(), CObjectInterface::GetObjectFromCN(), CReaction::resolveCN(), CRegisteredCommonName::sanitizeObjectNames(), and CModelExpansion::updateExpression().
|
static |
References split().
Referenced by CModelParameter::getName(), and CModelParameterSpecies::getName().
void CCommonName::split | ( | CCommonName & | parentCN, |
std::string & | objectType, | ||
std::string & | objectName | ||
) | const |
References escape(), findPrevious(), getElementName(), getObjectName(), and getObjectType().
Referenced by compartmentNameFromCN(), CModelParameterReactionParameter::compile(), construct(), and nameFromCN().
|
static |
Referenced by CDataArray::displayNamesToCN(), getElementName(), getObjectName(), and getObjectType().