#include <secondaryStructure.h>

Public Types |
|
|
Enums
|
|
| enum |
Type { HELIX, COIL, STRAND, TURN, UNKNOWN, NUMBER_OF_TYPES } |
| Secondary structure type. |
|
Public Member Functions |
|
|
Constructors and Destructors
|
|
| SecondaryStructure () | |
| Default constructor. |
|
| SecondaryStructure (const SecondaryStructure &secondary_structure, bool deep=true) | |
| Copy constructor. |
|
| SecondaryStructure (const String &name) | |
| virtual | ~SecondaryStructure () |
| Destructor. |
|
| virtual void | clear () |
| Clear the contents of the secondary
structure. |
|
| virtual void | destroy () |
| Clear the contents of the secondary
structure and remove it from all composite
structures. |
|
|
Predicates
|
|
| bool | operator== (const SecondaryStructure &secondary_structure) const |
| Equality operator. |
|
| bool | operator!= (const SecondaryStructure &secondary_structure) const |
| 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) |
| Assignment. |
|
| SecondaryStructure & | operator= (const SecondaryStructure &secondary_structure) |
| Assignment operator. |
|
| void | get (SecondaryStructure &secondary_structure, bool deep=true) const |
| Assignment. |
|
| void | swap (SecondaryStructure &secondary_structure) |
| Swapping of two secondary
structures. |
|
|
Accessors
|
|
| Type | getType () const |
| Return the type of secondary
structure. |
|
| void | setType (Type type) |
| Set the type of secondary
structure. |
|
| Protein * | getProtein () |
| Get a pointer to the parent protein.
|
|
| const Protein * | getProtein () const |
| Get a pointer to the parent protein.
|
|
| Chain * | getChain () |
| Get a pointer to the parent chain.
|
|
| const Chain * | getChain () const |
| Get a pointer to the parent chain.
|
|
| Residue * | getResidue (Position position) |
| Get a pointer to a child Residue at a given position. |
|
| const Residue * | getResidue (Position position) const |
| Get a pointer to a child Residue at a given position. |
|
| Residue * | getNTerminal () |
| Get a pointer to the N-terminal
Residue. |
|
| const Residue * | getNTerminal () const |
| Get a pointer to the N-terminal
Residue. |
|
| Residue * | getCTerminal () |
| Get a pointer to the C-terminal
Residue. |
|
| const Residue * | getCTerminal () const |
| Get a pointer to the C-terminal
Residue. |
|
| PDBAtom * | getPDBAtom (Position position) |
| Get a pointer to a child PDBAtom at a
given position. |
|
| const PDBAtom * | getPDBAtom (Position position) const |
| Get a pointer to a child PDBAtom at a
given position. |
|
| Size | countResidues () const |
| Count the Residues. |
|
| Size | countPDBAtoms () const |
| Count the PDBAtoms. |
|
| void | prepend (Residue &residue) |
| Prepend a Residue at position 0. |
|
| void | append (Residue &residue) |
| Append a Residue after the last position.
|
|
| void | insert (Residue &residue) |
| Insert a Residue after the last position.
|
|
| void | insertBefore (Residue &residue, Composite &before) |
| Insert a Residue before a given Composite object. |
|
| void | insertAfter (Residue &residue, Composite &after) |
| Insert a Residue after a given Composite object. |
|
| bool | remove (Residue &residue) |
| Remove a Residue. |
|
| void | spliceBefore (SecondaryStructure &secondary_structure) |
Move the children of
secondary_structure into this instance.
|
|
| void | spliceAfter (SecondaryStructure &secondary_structure) |
Move the children of
secondary_structure into this instance.
|
|
| void | splice (SecondaryStructure &secondary_structure) |
Move the children of
secondary_structure into this instance.
|
|
|
Debugging and Diagnostics
|
|
| virtual bool | isValid () const |
| Internal state and consistency
self-validation. |
|
| virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
| 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.
| void BALL::SecondaryStructure::append | ( | Residue & | residue | ) |
| Size BALL::SecondaryStructure::countPDBAtoms | ( | ) | const |
Count the PDBAtoms.
| Size BALL::SecondaryStructure::countResidues | ( | ) | const |
Count the Residues.
| virtual void BALL::SecondaryStructure::dump | ( | std::ostream & | s =
std::cout, |
|
| Size | depth =
0 |
|||
| ) | const [virtual] |
Internal state dump.
Dump the current internal state of this instance to the output ostream s with dumping depth depth .
| s | output stream where to output the internal state of this instance | |
| depth | the dumping depth |
Reimplemented from BALL::AtomContainer.
| void BALL::SecondaryStructure::get | ( | SecondaryStructure & | secondary_structure, | |
| bool | deep =
true |
|||
| ) | const |
Assignment.
The assignment is either deep or shallow (default).
| secondary_structure | the SecondaryStructure to be assigned to |
| const Chain* BALL::SecondaryStructure::getChain | ( | ) | const |
Get a pointer to the parent chain.
The pointer is 0 if this instance does not have a parent chain.
| Chain* BALL::SecondaryStructure::getChain | ( | ) |
Get a pointer to the parent chain.
The pointer is 0 if this instance does not have a parent chain.
| const Residue* BALL::SecondaryStructure::getCTerminal | ( | ) | const |
| Residue* BALL::SecondaryStructure::getCTerminal | ( | ) |
| const Residue* BALL::SecondaryStructure::getNTerminal | ( | ) | const |
| Residue* BALL::SecondaryStructure::getNTerminal | ( | ) |
| const PDBAtom* BALL::SecondaryStructure::getPDBAtom | ( | Position | position | ) | const |
| PDBAtom* BALL::SecondaryStructure::getPDBAtom | ( | Position | position | ) |
| const Protein* BALL::SecondaryStructure::getProtein | ( | ) | const |
Get a pointer to the parent protein.
The pointer is 0 if this instance does not have a parent protein.
| Protein* BALL::SecondaryStructure::getProtein | ( | ) |
Get a pointer to the parent protein.
The pointer is 0 if this instance does not have a parent protein.
| const Residue* BALL::SecondaryStructure::getResidue | ( | Position | position | ) | const |
| Residue* BALL::SecondaryStructure::getResidue | ( | Position | position | ) |
| void BALL::SecondaryStructure::insert | ( | Residue & | residue | ) |
| virtual bool BALL::SecondaryStructure::isValid | ( | ) | const [virtual] |
Internal state and consistency self-validation.
true if the internal state is
correct (self-validated) and consistent,
false otherwiseReimplemented from BALL::AtomContainer.
| bool BALL::SecondaryStructure::operator!= | ( | const SecondaryStructure & | secondary_structure | ) | const |
Inequality operator.
| SecondaryStructure& BALL::SecondaryStructure::operator= | ( | const SecondaryStructure & | secondary_structure | ) |
Assignment operator.
| secondary_structure | the SecondaryStructure to be copied (cloned) |
| bool BALL::SecondaryStructure::operator== | ( | const SecondaryStructure & | secondary_structure | ) | const |
Equality operator.
Two instance of SecondaryStructure are equal if they have the same handle.
| void BALL::SecondaryStructure::prepend | ( | Residue & | residue | ) |
| bool BALL::SecondaryStructure::remove | ( | Residue & | residue | ) |
| void BALL::SecondaryStructure::set | ( | const SecondaryStructure & | secondary_structure, | |
| bool | deep =
true |
|||
| ) |
Assignment.
The assignment is either deep or shallow (default).
| secondary_structure | the SecondaryStructure to be copied (cloned) | |
| deep | make a deep (=true) or shallow
(=false) copy |
| void BALL::SecondaryStructure::splice | ( | SecondaryStructure & | secondary_structure | ) |
Move the children of secondary_structure
into this instance.
The children are inserted using spliceBefore .
| void BALL::SecondaryStructure::spliceAfter | ( | SecondaryStructure & | secondary_structure | ) |
Move the children of secondary_structure
into this instance.
Cut all children of secondary_structure and
append them after the children of this instance.
| secondary_structure | the SecondaryStructure to access |
| void BALL::SecondaryStructure::spliceBefore | ( | SecondaryStructure & | secondary_structure | ) |
Move the children of secondary_structure
into this instance.
Cut all children of secondary_structure and
prepend them before the children of this instance.
| secondary_structure | the SecondaryStructure to access |
| void BALL::SecondaryStructure::swap | ( | SecondaryStructure & | secondary_structure | ) |
Swapping of two secondary structures.
| secondary_structure | to swap with this instance |
1.5.8