#include <gcp/mesomer.h>
Public Member Functions | |
Mesomer () | |
virtual | ~Mesomer () |
Mesomer (Mesomery *mesomery, Molecule *molecule) 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 () |
Definition at line 43 of file mesomer.h.
gcp::Mesomer::Mesomer | ( | ) |
The default constructor.
virtual gcp::Mesomer::~Mesomer | ( | ) | [virtual] |
The destructor.
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. |
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 gcu::Object.
bool gcp::Mesomer::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | a pointer to the xmlNode containing the serialized object. |
Reimplemented from gcu::Object.
bool gcp::Mesomer::OnSignal | ( | gcu::SignalId | Signal, | |
gcu::Object * | Child | |||
) | [virtual] |
Signal | the appropriate SignalId | |
Child | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
void gcp::Mesomer::RemoveArrow | ( | MesomeryArrow * | arrow, | |
Mesomer * | mesomer | |||
) |
arrow | a mesomery arrow | |
mesomer | the mesomer at the other end of the arrow. |
bool gcp::Mesomer::Validate | ( | ) | [inline] |