The Gnome Chemistry Utils 0.13.3
|
#include <gcp/mesomer.h>
Public Member Functions | |
Mesomer () | |
virtual | ~Mesomer () |
Mesomer (Mesomery *mesomery, Molecule *molecule) throw (std::invalid_argument) | |
Mesomer (Mesomery *mesomery, MechanismStep *step) throw (std::invalid_argument) | |
bool | Load (xmlNodePtr node) |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
double | GetYAlign () |
void | AddArrow (MesomeryArrow *arrow, Mesomer *mesomer) throw (std::invalid_argument) |
void | RemoveArrow (MesomeryArrow *arrow, Mesomer *mesomer) |
bool | Validate () |
std::map< Mesomer *, MesomeryArrow * > * | GetArrows () |
Molecule * | GetMolecule () |
std::string | Name () |
gcp::Mesomer::Mesomer | ( | ) |
The default constructor.
virtual gcp::Mesomer::~Mesomer | ( | ) | [virtual] |
The destructor.
gcp::Mesomer::Mesomer | ( | Mesomery * | mesomery, |
MechanismStep * | step | ||
) | throw (std::invalid_argument) |
void gcp::Mesomer::AddArrow | ( | MesomeryArrow * | arrow, |
Mesomer * | mesomer | ||
) | throw (std::invalid_argument) |
arrow | a mesomery arrow |
mesomer | the mesomer at the other end of the arrow. |
Adds the arrow to the arrows map. See Mesomer::GetArrows().
std::map<Mesomer *, MesomeryArrow *>* gcp::Mesomer::GetArrows | ( | ) | [inline] |
Molecule* gcp::Mesomer::GetMolecule | ( | void | ) | [inline] |
double gcp::Mesomer::GetYAlign | ( | ) | [virtual] |
Used to retrieve the y coordinate for alignment. Calls gcp::Molecule::GetYAlign for the embedded molecule and returns the result.
Reimplemented from gcp::MechanismStep.
bool gcp::Mesomer::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | a pointer to the xmlNode containing the serialized object. |
Used to load a mesomer in memory. The mesomer must already exist.
Reimplemented from gcp::MechanismStep.
std::string gcp::Mesomer::Name | ( | ) | [virtual] |
Reimplemented from gcp::MechanismStep.
bool gcp::Mesomer::OnSignal | ( | gcu::SignalId | Signal, |
gcu::Object * | Child | ||
) | [virtual] |
Signal | the appropriate SignalId |
Child | the child which emitted the signal or NULL |
This function is called by the framework when a signal has been emitted for the mesomer. It should not be called by a program; call Object::EmitSignal instead.
Reimplemented from gcp::MechanismStep.
void gcp::Mesomer::RemoveArrow | ( | MesomeryArrow * | arrow, |
Mesomer * | mesomer | ||
) |
arrow | a mesomery arrow |
mesomer | the mesomer at the other end of the arrow. |
Removes the arrow from the arrows map. See Mesomer::GetArrows().
bool gcp::Mesomer::Validate | ( | ) | [inline] |