#include <atomContainer.h>
Inheritance diagram for AtomContainer:
Public Types | |
Enums | |
enum | Property { NUMBER_OF_PROPERTIES = 0 } |
The number of predefined properties for AtomContainer. | |
Public Member Functions | |
Constructors and Destructors | |
AtomContainer () throw () | |
Default constructor. | |
AtomContainer (const AtomContainer &atom_container, bool deep=true) throw () | |
Copy constructor. | |
AtomContainer (const String &name) throw () | |
Detailed Constructor. | |
virtual | ~AtomContainer () throw () |
Destructor. | |
virtual void | clear () throw () |
Clear the contents of this instance of AtomContainer. | |
virtual void | destroy () throw () |
Clear the contents of this instance of AtomContainer and removes it from parent composite structures. | |
Persistence | |
virtual void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Write an AtomContainer object to a persistent stream. | |
virtual void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Read an AtomContainer object from a persistent stream. | |
Assignment | |
void | set (const AtomContainer &atom_container, bool deep=true) throw () |
Assign the contents of an AtomContainer The assignment is either deep or shallow (default is deep). | |
AtomContainer & | operator= (const AtomContainer &atom_container) throw () |
Assignment operator. | |
void | get (AtomContainer &atom_container, bool deep=true) const throw () |
Copy to another instance of AtomContainer. | |
void | swap (AtomContainer &atom_container) throw () |
Swap the contents of two AtomContainers. | |
Predicates | |
bool | operator== (const AtomContainer &atom_container) const throw () |
Equality operator. | |
bool | operator!= (const AtomContainer &atom_container) const throw () |
Inequality operator. | |
Accessors | |
void | setName (const String &name) throw () |
Set the name. | |
const String & | getName () const throw () |
Return the name. | |
AtomContainer * | getSuperAtomContainer () throw () |
Get a mutable pointer to the parent AtomContainer. | |
const AtomContainer * | getSuperAtomContainer () const throw () |
Get a constant pointer to the parent AtomContainer. | |
AtomContainer * | getAtomContainer (Position position) throw () |
Get a pointer to a child AtomContainer at a given position. | |
const AtomContainer * | getAtomContainer (Position position) const throw () |
Get a constant pointer to a child AtomContainer at a given position. | |
Atom * | getAtom (Position position) throw () |
Get a pointer to a child atom at a given position. | |
const Atom * | getAtom (Position position) const throw () |
Get a pointer to a child atom at a given position. | |
Atom * | getAtom (const String &name) throw () |
Get a pointer to a child atom with the name name . | |
const Atom * | getAtom (const String &name) const throw () |
Get a pointer to a child atom with the name name . | |
Size | countAtomContainers () const throw () |
Count the child AtomContainers. | |
Size | countAtoms () const throw () |
Count the child atoms. | |
Size | countBonds () const throw () |
Count the child bonds. | |
Size | countInterBonds () const throw () |
Count all bonds which connect atoms in this instance with atoms outside. | |
Size | countIntraBonds () const throw () |
Count all bonds which connect 2 atoms in this instance. | |
void | prepend (Atom &atom) throw () |
Prepend an atom at position 0. | |
void | append (Atom &atom) throw () |
Append an atom to the last position. | |
void | insert (Atom &atom) throw () |
Insert an atom to the last position. | |
void | insertBefore (Atom &atom, Composite &before) throw () |
Insert an atom before a given Composite object. | |
void | insertAfter (Atom &atom, Composite &after) throw () |
Insert an atom after a given Composite object. | |
bool | remove (Atom &atom) throw () |
Remove an atom. | |
void | prepend (AtomContainer &atom_container) throw () |
Prepend an AtomContainer at position 0. | |
void | append (AtomContainer &atom_container) throw () |
Append an AtomContainer at the last position. | |
void | insert (AtomContainer &atom_container) throw () |
Insert an AtomContainer at the last position. | |
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 instance. | |
void | spliceAfter (AtomContainer &atom_container) throw () |
Cut all children of atom_container and append them after the children of this instance. | |
void | splice (AtomContainer &atom_container) throw () |
Move the children of {atom_container} into this instance. | |
bool | remove (AtomContainer &atom_container) throw () |
Remove an AtomContainer. | |
Miscellaneous | |
void | destroyBonds () throw () |
Destroy all bonds in this instance. | |
Predicates | |
bool | isSubAtomContainerOf (const AtomContainer &atom_container) const throw () |
Test if an AtomContainer is a child. | |
bool | isSuperAtomContainerOf (const AtomContainer &atom_container) const throw () |
Test if an AtomContainer is the parent. | |
virtual bool | isValid () const throw () |
Internal state and consistency self-validation. | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal state dump. | |
Internal Iteration | |
bool | applyIntraBond (UnaryProcessor< Bond > &processor) throw () |
Apply to all bonds connecting two atoms inside this AtomContainer. | |
bool | applyInterBond (UnaryProcessor< Bond > &processor) throw () |
Apply to all bonds connected to atoms outside this AtomContainer. |
The AtomContainer
class is the base class of all kernel classes containing atoms.
|
Copy constructor.
|
|
Detailed Constructor.
|
|
Append an AtomContainer at the last position.
Reimplemented in Molecule. |
|
Append an atom to the last position.
Reimplemented in Molecule, and Nucleotide. |
|
Clear the contents of this instance of AtomContainer. This methods clears the base fragment's name, destroys all its children (as in Composite::clear ), but does not remove it from its parent composite structures. Reimplemented from Composite. Reimplemented in NucleicAcid, Nucleotide, Protein, Residue, and SecondaryStructure. |
|
Count the child AtomContainers.
|
|
Count the child atoms.
Reimplemented in System. |
|
Count the child bonds.
|
|
Count all bonds which connect atoms in this instance with atoms outside.
|
|
Count all bonds which connect 2 atoms in this instance.
|
|
Clear the contents of this instance of AtomContainer and removes it from parent composite structures. This methods clears the base fragment's name, destroys all its children (as in Composite::destroy ), and removes it from its parent composite structures. Reimplemented from Composite. Reimplemented in NucleicAcid, Nucleotide, Protein, Residue, and SecondaryStructure. |
|
Destroy all bonds in this instance.
|
|
Internal state dump. Dump the current internal state of this instance to the output ostream s with dumping depth depth .
Reimplemented from Composite. Reimplemented in Chain, Fragment, Molecule, NucleicAcid, Nucleotide, Protein, Residue, and SecondaryStructure. |
|
Copy to another instance of AtomContainer. The assignment is either deep or shallow (default is deep).
|
|
Get a pointer to a child atom with the name name . The pointer is 0 if this instance AtomContainer does not have an atom with this name.
|
|
Get a pointer to a child atom with the name name . The pointer is 0 if this instance does not have an atom with this name.
|
|
Get a pointer to a child atom at a given position. The pointer is 0 if this instance does not have an atom at the given position.
|
|
Get a pointer to a child atom at a given position. The pointer is 0 if this instance does not have an atom at the given position.
|
|
Get a constant pointer to a child AtomContainer at a given position. The pointer is 0 if this instance does not have an AtomContainer at the given position.
|
|
Get a pointer to a child AtomContainer at a given position. The pointer is 0 if this instance does not have an AtomContainer at the given position.
|
|
Return the name.
|
|
Get a constant pointer to the parent AtomContainer. The pointer is 0 if this instance does not have a parent AtomContainer.
Reimplemented in Molecule. |
|
Get a mutable pointer to the parent AtomContainer. The pointer is 0 if this instance does not have a parent AtomContainer.
Reimplemented in Molecule. |
|
Insert an AtomContainer at the last position.
Reimplemented in Molecule. |
|
Insert an atom to the last position.
Reimplemented in Molecule, and Nucleotide. |
|
Insert an AtomContainer after a given Composite object.
Reimplemented in Molecule. |
|
Insert an atom after a given Composite object.
Reimplemented in Molecule, and Nucleotide. |
|
Insert an AtomContainer before a given Composite object.
Reimplemented in Molecule. |
|
Insert an atom before a given Composite object.
Reimplemented in Molecule, and Nucleotide. |
|
Test if an AtomContainer is a child.
Reimplemented in Molecule. |
|
Test if an AtomContainer is the parent.
|
|
Internal state and consistency self-validation.
If the internal state of this instance is correct (self-validated) and consistent
Reimplemented from Composite. Reimplemented in NucleicAcid, Nucleotide, Protein, Residue, and SecondaryStructure. |
|
Inequality operator.
|
|
Assignment operator. The assignment is deep.
|
|
Equality operator. Two instances of AtomContainer are equal if they have the same handle. |
|
Read an AtomContainer object from a persistent stream.
Reimplemented from Composite. Reimplemented in Chain, Fragment, Molecule, NucleicAcid, Nucleotide, Protein, Residue, SecondaryStructure, and System. |
|
Write an AtomContainer object to a persistent stream.
Reimplemented from Composite. Reimplemented in Chain, Fragment, Molecule, NucleicAcid, Nucleotide, Protein, Residue, SecondaryStructure, and System. |
|
Prepend an AtomContainer at position 0.
Reimplemented in Molecule. |
|
Prepend an atom at position 0.
Reimplemented in Molecule, and Nucleotide. |
|
Remove an AtomContainer.
Reimplemented in Molecule. |
|
Remove an atom.
Reimplemented in Molecule, and Nucleotide. |
|
Assign the contents of an AtomContainer The assignment is either deep or shallow (default is deep).
|
|
Set the name.
|
|
Move the children of {atom_container} into this instance.
The children of Reimplemented in Molecule. |
|
Cut all children of
Reimplemented in Molecule. |
|
Cut all children of
Reimplemented in Molecule. |
|
Swap the contents of two AtomContainers.
|