COPASI API  4.40.278
CModelExpansion::ElementsMap Class Reference

#include <CModelExpansion.h>

Public Member Functions

void add (const CDataObject *source, const CDataObject *copy)
 add a source->duplicate mapping More...
 
bool exists (const CDataObject *source) const
 does a copy of the source object exist? More...
 
bool exists (const std::string &sourceKey) const
 
CCommonName getDuplicateFromCN (const CCommonName &cn) const
 find the key of the duplicated object from the source object (if it exists) More...
 
const CDataObjectgetDuplicateFromObject (const CDataObject *source) const
 find the pointer of the duplicated object from the pointer to the source object (if it exists) More...
 
const std::map< const CDataObject *, const CDataObject * > & getMap () const
 

Protected Attributes

std::map< const CDataObject *, const CDataObject * > mMap
 

Detailed Description

This class contains a map from original to duplicated sets of model elements

Member Function Documentation

◆ add()

◆ exists() [1/2]

◆ exists() [2/2]

bool CModelExpansion::ElementsMap::exists ( const std::string &  sourceKey) const

◆ getDuplicateFromCN()

CCommonName CModelExpansion::ElementsMap::getDuplicateFromCN ( const CCommonName cn) const

find the key of the duplicated object from the source object (if it exists)

References CObjectInterface::DataObject(), CDataObject::getCN(), and CRootContainer::getRoot().

◆ getDuplicateFromObject()

const CDataObject * CModelExpansion::ElementsMap::getDuplicateFromObject ( const CDataObject source) const

◆ getMap()

const std::map< const CDataObject *, const CDataObject * > & CModelExpansion::ElementsMap::getMap ( ) const

Member Data Documentation

◆ mMap

std::map<const CDataObject*, const CDataObject*> CModelExpansion::ElementsMap::mMap
protected

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