#include <molecule.h>
Inheritance diagram for Molecule:
Public Types | |
Enums | |
enum | Property { IS_SOLVENT = AtomContainer::NUMBER_OF_PROPERTIES, NUMBER_OF_PROPERTIES } |
Properties. | |
Public Member Functions | |
bool | operator== (const Molecule &molecule) const throw () |
Equality operator. | |
bool | operator!= (const Molecule &molecule) const throw () |
Inequality operator. | |
Constructors and Destructors | |
Molecule () throw () | |
Default constructor. | |
Molecule (const Molecule &molecule, bool deep=true) throw () | |
Copy constructor. | |
Molecule (const String &name) throw () | |
Detailled constructor. | |
virtual | ~Molecule () throw () |
Destructor. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a Molecule object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a Molecule object from a persistent stream. | |
Assignment | |
void | set (const Molecule &molecule, bool deep=true) throw () |
Assign from another Molecule. | |
Molecule & | operator= (const Molecule &molecule) throw () |
Assignment operator. | |
void | get (Molecule &molecule, bool deep=true) const throw () |
Assign to another Molecule. | |
void | swap (Molecule &molecule) throw () |
Swap the contents of two molecules. | |
Accessors | |
System * | getSystem () throw () |
Access the parent System. | |
const System * | getSystem () const throw () |
Get a const pointer to the parent System. | |
void | prepend (Atom &atom) throw () |
Insert an atom as the first child. | |
void | append (Atom &atom) throw () |
Insert an atom as the last child. | |
void | insert (Atom &atom) throw () |
Insert an atom as the last child. | |
void | insertBefore (Atom &atom, Composite &before) throw () |
Insert an atom before a Composite object. | |
void | insertAfter (Atom &atom, Composite &after) throw () |
Insert an atom after a Composite object. | |
bool | remove (Atom &atom) throw () |
Remove an atom. | |
void | prepend (AtomContainer &atom_container) throw () |
Insert an AtomContainer as the first child. | |
void | append (AtomContainer &atom_container) throw () |
Append an AtomContainer as the last child. | |
void | insert (AtomContainer &atom_container) throw () |
Insert an AtomContainer as the last child. | |
void | insertBefore (AtomContainer &atom_container, Composite &before) throw () |
Insert an AtomContainer before a given Composite object. | |
void | insertAfter (AtomContainer &atom_container, Composite &after) throw () |
Insert an AtomContainer after a given Composite object. | |
void | spliceBefore (AtomContainer &atom_container) throw () |
Cut all children of atom_container and prepend them before the children of this molecule. | |
void | spliceAfter (AtomContainer &atom_container) throw () |
Cut all children of atom_container and append them after the children of this molecule. | |
void | splice (AtomContainer &atom_container) throw () |
Move the children of atom_container into this molecule. | |
bool | remove (AtomContainer &atom_container) throw () |
Remove an AtomContainer. | |
Debugging and Diagnostics | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal state dump. | |
Protected Member Functions | |
Molecule * | getMolecule () throw () |
const Molecule * | getMolecule () const throw () |
AtomContainer * | getSuperAtomContainer () throw () |
Get a mutable pointer to the parent AtomContainer. | |
const AtomContainer * | getSuperAtomContainer () const throw () |
Get a constant pointer to the parent AtomContainer. | |
void | prepend (Molecule &molecule) throw () |
void | append (Molecule &molecule) throw () |
void | insert (Molecule &molecule) throw () |
void | insertBefore (Molecule &molecule, Composite &composite) throw () |
void | insertAfter (Molecule &molecule, Composite &composite) throw () |
bool | remove (Molecule &molecule) throw () |
bool | isSubAtomContainerOf (const AtomContainer &atom_container) const throw () |
Test if an AtomContainer is a child. |
Used to represent general molecules without specific properties.
|
Default constructor.
|
|
Copy constructor.
|
|
Detailled constructor.
|
|
Destructor.
|
|
Append an AtomContainer as the last child.
Reimplemented from AtomContainer. |
|
Insert an atom as the last child.
Reimplemented from AtomContainer. |
|
Internal state dump. Dump the current internal state to the output ostream s with dumping depth depth .
Reimplemented from AtomContainer. Reimplemented in NucleicAcid, and Protein. |
|
Assign to another Molecule.
|
|
Get a constant pointer to the parent AtomContainer. The pointer is 0 if this instance does not have a parent AtomContainer.
Reimplemented from AtomContainer. |
|
Get a mutable pointer to the parent AtomContainer. The pointer is 0 if this instance does not have a parent AtomContainer.
Reimplemented from AtomContainer. |
|
Get a const pointer to the parent System.
|
|
Access the parent System.
|
|
Insert an AtomContainer as the last child.
Reimplemented from AtomContainer. |
|
Insert an atom as the last child.
Reimplemented from AtomContainer. |
|
Insert an AtomContainer after a given Composite object.
Reimplemented from AtomContainer. |
|
Insert an atom after a Composite object.
Reimplemented from AtomContainer. |
|
Insert an AtomContainer before a given Composite object.
Reimplemented from AtomContainer. |
|
Insert an atom before a Composite object.
Reimplemented from AtomContainer. |
|
Test if an AtomContainer is a child.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Assignment operator.
|
|
Equality operator. Two molecules are equal if they have the same handle.
|
|
Reads a Molecule object from a persistent stream.
Reimplemented from AtomContainer. Reimplemented in NucleicAcid, and Protein. |
|
Writes a Molecule object to a persistent stream.
Reimplemented from AtomContainer. Reimplemented in NucleicAcid, and Protein. |
|
Insert an AtomContainer as the first child.
Reimplemented from AtomContainer. |
|
Insert an atom as the first child.
Reimplemented from AtomContainer. |
|
Remove an AtomContainer.
Reimplemented from AtomContainer. |
|
Remove an atom.
Reimplemented from AtomContainer. |
|
Assign from another Molecule.
|
|
Move the children of atom_container into this molecule.
The children of Reimplemented from AtomContainer. |
|
Cut all children of
Reimplemented from AtomContainer. |
|
Cut all children of
Reimplemented from AtomContainer. |
|
Swap the contents of two molecules.
|