List of all members.
This is the low level unit that is used by reactions to identify the particular component of a molecule to update or change when a transformation is required. It is maintained by a MappingSet which is just a collection of Mapping objects. The "type" of mapping is identified in the same way as the "type" of transformation. See the Transformation class for a list of those types. The "index" simply is the index of the binding site or state of a molecule. It is possible that some "types" do not require an "index" (as in the case of adding or deleting an entire molecule).
Public Member Functions
|Mapping (unsigned int type, int index)|
|unsigned int||getType () const|
|int||getIndex () const|
|Molecule *||getMolecule () const|
|bool||setMolecule (Molecule *m)|
|void||printDetails () const|
|void||printDetails (ostream &o) const|
Static Public Member Functions
|static void||clone (Mapping *original, Mapping *newClone)|
Destroys this mapping, but does not delete the molecule it is mapped to.
|unsigned int NFcore::Mapping::getType||(||)||const|
Returns the type of mapping this is. See Transformation for the possible types that can be assigned.
|Molecule * NFcore::Mapping::getMolecule||(||)|| const
|bool NFcore::Mapping::setMolecule||(||Molecule *||m||)|
|void NFcore::Mapping::printDetails||(||ostream &||o||)||const|
|unsigned int NFcore::Mapping::type
The "type" of mapping this is, taken from the same list of types in the Transformation class.
The index of the binding site or state that this Mapping keeps track of.