#include <BALL/KERNEL/secondaryStructure.h>
Public Types | |
Enums | |
enum | Type { HELIX, COIL, STRAND, TURN, UNKNOWN, NUMBER_OF_TYPES } |
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 |
bool | operator!= (const SecondaryStructure &secondary_structure) const |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const |
void | persistentRead (PersistenceManager &pm) |
Assignment | |
void | set (const SecondaryStructure &secondary_structure, bool deep=true) |
SecondaryStructure & | operator= (const SecondaryStructure &secondary_structure) |
void | get (SecondaryStructure &secondary_structure, bool deep=true) const |
void | swap (SecondaryStructure &secondary_structure) |
Accessors | |
Type | getType () const |
Return the type of secondary structure. | |
void | setType (Type type) |
Set the type of secondary structure. | |
Protein * | getProtein () |
const Protein * | getProtein () const |
Chain * | getChain () |
const Chain * | getChain () const |
Residue * | getResidue (Position position) |
const Residue * | getResidue (Position position) const |
Residue * | getNTerminal () |
const Residue * | getNTerminal () const |
Residue * | getCTerminal () |
const Residue * | getCTerminal () const |
PDBAtom * | getPDBAtom (Position position) |
const PDBAtom * | getPDBAtom (Position position) const |
Size | countResidues () const |
Size | countPDBAtoms () const |
void | prepend (Residue &residue) |
void | append (Residue &residue) |
void | insert (Residue &residue) |
void | insertBefore (Residue &residue, Composite &before) |
void | insertAfter (Residue &residue, Composite &after) |
bool | remove (Residue &residue) |
void | spliceBefore (SecondaryStructure &secondary_structure) |
void | spliceAfter (SecondaryStructure &secondary_structure) |
void | splice (SecondaryStructure &secondary_structure) |
Debugging and Diagnostics | |
virtual bool | isValid () const |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Protected Attributes | |
Type | type_ |
The secondary structure type (helix, strand, coil, turn). | |
Private Member Functions | |
Fragment * | getFragment (Position position) |
const Fragment * | getFragment (Position position) const |
Atom * | getAtom (Position position) |
const Atom * | getAtom (Position position) const |
void | prepend (Atom &atom) |
void | append (Atom &atom) |
void | insert (Atom &atom) |
void | insertBefore (Atom &atom, Composite &before) |
void | insertAfter (Atom &atom, Composite &after) |
bool | remove (Atom &atom) |
void | prepend (AtomContainer &atom_container) |
void | append (AtomContainer &atom_container) |
void | insert (AtomContainer &atom_container) |
void | insertBefore (AtomContainer &atom_container, Composite &before) |
void | insertAfter (AtomContainer &atom_container, Composite &after) |
void | spliceBefore (AtomContainer &atom_container) |
void | spliceAfter (AtomContainer &atom_container) |
void | splice (AtomContainer &atom_container) |
bool | remove (AtomContainer &atom_container) |
Secondary structure class. This class is used to represent secondary structure elements of protein chains.
Definition at line 29 of file secondaryStructure.h.
Secondary structure type
Definition at line 42 of file secondaryStructure.h.
BALL::SecondaryStructure::SecondaryStructure | ( | ) |
Default constructor.
BALL::SecondaryStructure::SecondaryStructure | ( | const SecondaryStructure & | secondary_structure, | |
bool | deep = true | |||
) |
Copy constructor.
BALL::SecondaryStructure::SecondaryStructure | ( | const String & | name | ) |
virtual BALL::SecondaryStructure::~SecondaryStructure | ( | ) | [virtual] |
Destructor.
void BALL::SecondaryStructure::append | ( | AtomContainer & | atom_container | ) | [private] |
Append an AtomContainer at the last position.
atom_container | the AtomContainer to prepend |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::append | ( | Atom & | atom | ) | [private] |
Append an atom to the last position.
atom | the atom to append |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::append | ( | Residue & | residue | ) |
virtual void BALL::SecondaryStructure::clear | ( | ) | [virtual] |
Clear the contents of the secondary structure.
Reimplemented from BALL::AtomContainer.
Size BALL::SecondaryStructure::countPDBAtoms | ( | ) | const |
Count the PDBAtoms.
Size BALL::SecondaryStructure::countResidues | ( | ) | const |
Count the Residues.
virtual void BALL::SecondaryStructure::destroy | ( | ) | [virtual] |
Clear the contents of the secondary structure and remove it from all composite structures.
Reimplemented from BALL::AtomContainer.
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 |
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.
position | the position of the child atom |
Reimplemented from BALL::AtomContainer.
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.
position | the position of the child atom |
Reimplemented from BALL::AtomContainer.
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 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.
Type BALL::SecondaryStructure::getType | ( | ) | const [inline] |
Return the type of secondary structure.
Definition at line 150 of file secondaryStructure.h.
void BALL::SecondaryStructure::insert | ( | AtomContainer & | atom_container | ) | [private] |
Insert an AtomContainer at the last position.
atom_container | the AtomContainer to insert |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::insert | ( | Atom & | atom | ) | [private] |
Insert an atom to the last position.
atom | the atom to insert |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::insert | ( | Residue & | residue | ) |
void BALL::SecondaryStructure::insertAfter | ( | AtomContainer & | atom_container, | |
Composite & | after | |||
) | [private] |
Insert an AtomContainer after a given Composite object.
atom_container | the AtomContainer to insert | |
after | the Composite object to insert after |
Reimplemented from BALL::AtomContainer.
Insert an atom after a given Composite object.
atom | the atom to insert | |
after | the Composite object to insert after |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::insertBefore | ( | AtomContainer & | atom_container, | |
Composite & | before | |||
) | [private] |
Insert an AtomContainer before a given Composite object.
atom_container | the AtomContainer to insert | |
before | the Composite object to insert before |
Reimplemented from BALL::AtomContainer.
Insert an atom before a given Composite object.
atom | the atom to insert | |
before | the Composite object to insert before |
Reimplemented from BALL::AtomContainer.
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
otherwise Reimplemented 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::persistentRead | ( | PersistenceManager & | pm | ) | [virtual] |
Read a SecondaryStructure object from a persistent stream
pm | the persistence manager |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::persistentWrite | ( | PersistenceManager & | pm, | |
const char * | name = 0 | |||
) | const [virtual] |
Write a SecondaryStructure object to a persistent stream
pm | the persistence manager |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::prepend | ( | AtomContainer & | atom_container | ) | [private] |
Prepend an AtomContainer at position 0.
atom_container | the AtomContainer to prepend |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::prepend | ( | Atom & | atom | ) | [private] |
Prepend an atom at position 0.
atom | the atom to prepend |
Reimplemented from BALL::AtomContainer.
void BALL::SecondaryStructure::prepend | ( | Residue & | residue | ) |
bool BALL::SecondaryStructure::remove | ( | AtomContainer & | atom_container | ) | [private] |
Remove an AtomContainer
atom_container | the AtomContainer to remove |
Reimplemented from BALL::AtomContainer.
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::setType | ( | Type | type | ) | [inline] |
Set the type of secondary structure.
Definition at line 153 of file secondaryStructure.h.
void BALL::SecondaryStructure::splice | ( | AtomContainer & | atom_container | ) | [private] |
Move the children of {atom_container} into this instance. The children of atom_container
are inserted at its position if it is is a child of this
. Otherwise the children are inserted using spliceBefore .
Reimplemented from BALL::AtomContainer.
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 | ( | AtomContainer & | atom_container | ) | [private] |
Cut all children of atom_container
and append them after the children of this instance.
atom_container | the AtomContainer to access |
Reimplemented from BALL::AtomContainer.
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 | ( | AtomContainer & | atom_container | ) | [private] |
Cut all children of atom_container
and prepend them before the children of this instance.
atom_container | the AtomContainer to access |
Reimplemented from BALL::AtomContainer.
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 |
Type BALL::SecondaryStructure::type_ [protected] |
The secondary structure type (helix, strand, coil, turn).
Definition at line 323 of file secondaryStructure.h.