#include <chain.h>
Inheritance diagram for Chain:
Public Types | |
Enums | |
enum | Property { NUMBER_OF_PROPERTIES = AtomContainer::NUMBER_OF_PROPERTIES } |
The number of predefined properties for AtomContainer. | |
Public Member Functions | |
bool | operator== (const Chain &chain) const throw () |
Equality operator. | |
bool | operator!= (const Chain &chain) const throw () |
Inequality operator. | |
Constructors and Destructors | |
Chain () throw () | |
Default constrcutor. | |
Chain (const Chain &chain, bool deep=true) throw () | |
Copy constructor. | |
Chain (const String &name) throw () | |
Detailled constructor. | |
virtual | ~Chain () throw () |
Destructor. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a Chain object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a Chain object from a persistent stream. | |
Assignment | |
void | set (const Chain &chain, bool deep=true) throw () |
Assignment with cloning facility. | |
Chain & | operator= (const Chain &chain) throw () |
Assignment operator. | |
void | get (Chain &chain, bool deep=true) const throw () |
Copying with cloning facility. | |
void | swap (Chain &chain) throw () |
Swapping of chains. | |
Accessors | |
Protein * | getProtein () throw () |
Get a pointer to the parent protein. | |
const Protein * | getProtein () const throw () |
Get a constant pointer to the parent protein. | |
SecondaryStructure * | getSecondaryStructure (Position position) throw () |
Get a pointer to a child SecondaryStructure at a given position. | |
const SecondaryStructure * | getSecondaryStructure (Position position) const throw () |
Get a constant pointer to a child SecondaryStructure at a given position. | |
Residue * | getResidue (Position position) throw () |
Get a pointer to a child Residue at a given position. | |
const Residue * | getResidue (Position position) const throw () |
Get a pointer to a child Residue at a given position. | |
Residue * | getNTerminal () throw () |
Get a pointer to the N-terminal Residue. | |
const Residue * | getNTerminal () const throw () |
Get a constant pointer to the N-terminal Residue. | |
Residue * | getCTerminal () throw () |
Get a pointer to the C-terminal Residue. | |
const Residue * | getCTerminal () const throw () |
Get a constant pointer to the C-terminal Residue. | |
PDBAtom * | getPDBAtom (Position position) throw () |
Get a pointer to a child PDBAtom at a given position. | |
const PDBAtom * | getPDBAtom (Position position) const throw () |
Get a pointer to a child PDBAtom at a given position. | |
Size | countSecondaryStructures () const throw () |
Count the SecondaryStructures. | |
Size | countResidues () const throw () |
Count the Residues. | |
Size | countPDBAtoms () const throw () |
Count the PDBAtoms. | |
void | prepend (SecondaryStructure &secondary_structure) throw () |
Prepend a SecondaryStructure at position 0. | |
void | append (SecondaryStructure &secondary_structure) throw () |
Append a SecondaryStructure after the last position. | |
void | insert (SecondaryStructure &secondary_structure) throw () |
Insert a SecondaryStructure after the last position. | |
void | insertBefore (SecondaryStructure &secondary_structure, Composite &before) throw () |
Insert a SecondaryStructure before a given Composite object. | |
void | insertAfter (SecondaryStructure &secondary_structure, Composite &after) throw () |
Insert a SecondaryStructure after a given Composite object. | |
bool | remove (SecondaryStructure &secondary_structure) throw () |
Remove a SecondaryStructure. | |
void | prepend (Residue &residue) throw () |
Prepend a Residue at position 0. | |
void | append (Residue &residue) throw () |
Append a Residue after the last position. | |
void | insert (Residue &residue) throw () |
Insert a Residue after the last position. | |
void | insertBefore (Residue &residue, Composite &before) throw () |
Insert a Residue before a given Composite object. | |
void | insertAfter (Residue &residue, Composite &after) throw () |
Insert a Residue after a given Composite object. | |
bool | remove (Residue &residue) throw () |
Remove a Residue. | |
void | spliceBefore (Chain &chain) throw () |
Cut all children of chain and prepend them before the children of this chain. | |
void | spliceAfter (Chain &chain) throw () |
Cut all children of chain and append them after the children of this chain. | |
void | splice (Chain &chain) throw () |
Move the children of chain into this chain. | |
Debugging and Diagnostics | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal state dump. |
This class represents a polypeptide chain within a Protein . Chains can contain SecondaryStructure s or Residue s.
|
Append a Residue after the last position.
|
|
Append a SecondaryStructure after the last position.
|
|
Count the PDBAtoms.
|
|
Count the Residues.
|
|
Count the SecondaryStructures.
|
|
Internal state dump. Dump the current internal state to the output ostream s with dumping depth depth .
Reimplemented from AtomContainer. |
|
Copying with cloning facility. The assignment is either deep or shallow (default).
|
|
Get a constant pointer to the C-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".
|
|
Get a pointer to the C-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".
|
|
Get a constant pointer to the N-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".
|
|
Get a pointer to the N-terminal Residue. The pointer is 0 if this instance does not have a Residue with the property "PROPERTY__AMINO_ACID".
|
|
Get a pointer to a child PDBAtom at a given position. The pointer is 0 if this instance does not have a PDBAtom at this position.
|
|
Get a pointer to a child PDBAtom at a given position. The pointer is 0 if this instance does not have a PDBAtom at this position.
|
|
Get a constant pointer to the parent protein. The pointer is 0 if this instance does not have a parent protein.
|
|
Get a pointer to the parent protein. The pointer is 0 if this instance does not have a parent protein.
|
|
Get a pointer to a child Residue at a given position. The pointer is 0 if this instance does not have a Residue at this position.
|
|
Get a pointer to a child Residue at a given position. The pointer is 0 if this instance does not have a Residue at this position.
|
|
Get a constant pointer to a child SecondaryStructure at a given position. The pointer is 0 if this instance does not have a SecondaryStructure at this position.
|
|
Get a pointer to a child SecondaryStructure at a given position. The pointer is 0 if this instance does not have a SecondaryStructure at this position.
|
|
Insert a Residue after the last position.
|
|
Insert a SecondaryStructure after the last position.
|
|
Insert a Residue after a given Composite object.
|
|
Insert a SecondaryStructure after a given Composite object.
|
|
Insert a Residue before a given Composite object.
|
|
Insert a SecondaryStructure before a given Composite object.
|
|
Inequality operator.
|
|
Assignment operator. The assignment is deep.
|
|
Equality operator. Two chains are equal if they have the same handle.
|
|
Reads a Chain object from a persistent stream.
Reimplemented from AtomContainer. |
|
Writes a Chain object to a persistent stream.
Reimplemented from AtomContainer. |
|
Prepend a Residue at position 0.
|
|
Prepend a SecondaryStructure at position 0.
|
|
Remove a Residue.
|
|
Remove a SecondaryStructure.
|
|
Assignment with cloning facility. The assignment is either deep or shallow (default).
|
|
Move the children of
The children of |
|
Cut all children of
|
|
Cut all children of
|
|
Swapping of chains.
|