#include <secondaryStructure.h>
Inheritance diagram for SecondaryStructure:
Public Types | |
Enums | |
enum | Type { HELIX, COIL, STRAND, TURN, UNKNOWN, NUMBER_OF_TYPES } |
Secondary structure type. | |
Public Member Functions | |
Constructors and Destructors | |
SecondaryStructure () throw () | |
Default constructor. | |
SecondaryStructure (const SecondaryStructure &secondary_structure, bool deep=true) throw () | |
Copy constructor. | |
SecondaryStructure (const String &name) throw () | |
virtual | ~SecondaryStructure () throw () |
Destructor. | |
virtual void | clear () throw () |
Clear the contents of the secondary structure. | |
virtual void | destroy () throw () |
Clear the contents of the secondary structure and remove it from all composite structures. | |
Predicates | |
bool | operator== (const SecondaryStructure &secondary_structure) const throw () |
Equality operator. | |
bool | operator!= (const SecondaryStructure &secondary_structure) const throw () |
Inequality operator. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Write a SecondaryStructure object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Read a SecondaryStructure object from a persistent stream. | |
Assignment | |
void | set (const SecondaryStructure &secondary_structure, bool deep=true) throw () |
Assignment. | |
SecondaryStructure & | operator= (const SecondaryStructure &secondary_structure) throw () |
Assignment operator. | |
void | get (SecondaryStructure &secondary_structure, bool deep=true) const throw () |
Assignment. | |
void | swap (SecondaryStructure &secondary_structure) throw () |
Swapping of two secondary structures. | |
Accessors | |
Type | getType () const throw () |
Return the type of secondary structure. | |
void | setType (Type type) throw () |
Set the type of secondary structure. | |
Protein * | getProtein () throw () |
Get a pointer to the parent protein. | |
const Protein * | getProtein () const throw () |
Get a pointer to the parent protein. | |
Chain * | getChain () throw () |
Get a pointer to the parent chain. | |
const Chain * | getChain () const throw () |
Get a pointer to the parent chain. | |
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 pointer to the N-terminal Residue. | |
Residue * | getCTerminal () throw () |
Get a pointer to the C-terminal Residue. | |
const Residue * | getCTerminal () const throw () |
Get a 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 | countResidues () const throw () |
Count the Residues. | |
Size | countPDBAtoms () const throw () |
Count the PDBAtoms. | |
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 (SecondaryStructure &secondary_structure) throw () |
Move the children of secondary_structure into this instance. | |
void | spliceAfter (SecondaryStructure &secondary_structure) throw () |
Move the children of secondary_structure into this instance. | |
void | splice (SecondaryStructure &secondary_structure) throw () |
Move the children of secondary_structure into this instance. | |
Debugging and Diagnostics | |
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. | |
Protected Attributes | |
Type | type_ |
The secondary structure type (helix, strand, coil, turn). |
This class is used to represent secondary structure elements of protein chains.
|
Append a Residue after the last position.
|
|
Count the PDBAtoms.
|
|
Count the Residues.
|
|
Internal state dump. Dump the current internal state of this instance to the output ostream s with dumping depth depth .
Reimplemented from AtomContainer. |
|
Assignment. The assignment is either deep or shallow (default).
|
|
Get a pointer to the parent chain. The pointer is 0 if this instance does not have a parent chain.
|
|
Get a pointer to the parent chain. The pointer is 0 if this instance does not have a parent chain.
|
|
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 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 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 residue 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 residue does not have a PDBAtom at this position.
|
|
Get a 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 the given 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 the given position.
|
|
Insert a Residue after the last position.
|
|
Insert a Residue after a given Composite object.
|
|
Insert a Residue before a given Composite object.
|
|
Internal state and consistency self-validation.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Assignment operator.
|
|
Equality operator. Two instance of SecondaryStructure are equal if they have the same handle.
|
|
Prepend a Residue at position 0.
|
|
Remove a Residue.
|
|
Assignment. The assignment is either deep or shallow (default).
|
|
Move the children of The children are inserted using spliceBefore . |
|
Move the children of
Cut all children of
|
|
Move the children of
Cut all children of
|
|
Swapping of two secondary structures.
|