#include <residue.h>
Inheritance diagram for Residue:
Public Types | |
Enums | |
enum | Property { PROPERTY__NON_STANDARD = Fragment::NUMBER_OF_PROPERTIES + 1, PROPERTY__AMINO_ACID, PROPERTY__WATER, PROPERTY__HAS_SSBOND, PROPERTY__C_TERMINAL, PROPERTY__N_TERMINAL, PROPERTY__CYCLIC, NUMBER_OF_PROPERTIES } |
The number of predefined properties for AtomContainer. More... | |
enum | FullNameType { NO_VARIANT_EXTENSIONS, ADD_VARIANT_EXTENSIONS, ADD_RESIDUE_ID, ADD_VARIANT_EXTENSIONS_AND_ID } |
Enum used to describe the kind of name constructed by getFullName . More... | |
Public Member Functions | |
bool | operator== (const Residue &residue) const throw () |
Equality operator. | |
bool | operator!= (const Residue &residue) const throw () |
Inequality operator. | |
Constructors and Destructors | |
Residue () throw () | |
Default constructor. | |
Residue (const Residue &residue, bool deep=true) throw () | |
Copy constructor. | |
Residue (const String &name, const String &id=BALL_RESIDUE_DEFAULT_ID, char insertion_code=BALL_RESIDUE_DEFAULT_INSERTION_CODE) throw () | |
Detailled constructor. | |
virtual | ~Residue () throw () |
Destructor. | |
virtual void | clear () throw () |
Clears the contents of this instance. | |
virtual void | destroy () throw () |
Clears the contents of this instance and removes it from all composite structures. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a Residue object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a Residue object from a persistent stream. | |
Assignment | |
void | set (const Residue &residue, bool deep=true) throw () |
Assignment with cloning facility. | |
Residue & | operator= (const Residue &residue) throw () |
Assignment operator. | |
void | get (Residue &residue, bool deep=true) const throw () |
Assign a Residue object from another instance. | |
void | swap (Residue &residue) throw () |
Swap the contents of two Residue objects. | |
Accessors | |
String | getFullName (FullNameType type=ADD_VARIANT_EXTENSIONS) const throw () |
Return the fully qualified name. | |
bool | hasTorsionPhi () const throw () |
Check whether the torsion angle phi is defined. | |
Angle | getTorsionPhi () const throw () |
Calculate the torsion angle phi. | |
bool | hasTorsionPsi () const throw () |
Check whether the torsion angle psi is defined. | |
Angle | getTorsionPsi () const throw () |
Calculate the torsion angle psi. | |
Protein * | getProtein () throw () |
Get a pointer to the parent protein. | |
const Protein * | getProtein () const throw () |
Get a constant 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. | |
SecondaryStructure * | getSecondaryStructure () throw () |
Get a pointer to the parent secondary structure. | |
const SecondaryStructure * | getSecondaryStructure () const throw () |
Get a pointer to the parent secondary structure. | |
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. | |
void | setID (const String &id) throw () |
Set the ID. | |
const String & | getID () const throw () |
Retrieve the ID. | |
void | setInsertionCode (char insertion_code) throw () |
Set the insertion code. | |
char | getInsertionCode () const throw () |
Get the insertion code. | |
Size | countPDBAtoms () const throw () |
Count the child PDBAtoms. | |
void | prepend (PDBAtom &atom) throw () |
Prepend a PDBAtom at position 0. | |
void | append (PDBAtom &atom) throw () |
Append a PDBAtom at the last position. | |
void | insert (PDBAtom &atom) throw () |
Insert a PDBAtom at the last position. | |
void | insertBefore (PDBAtom &atom, Composite &before) throw () |
Insert a PDBAtom before a given Composite object. | |
void | insertAfter (PDBAtom &atom, Composite &after) throw () |
Insert a PDBAtom after a given Composite object. | |
bool | remove (PDBAtom &atom) throw () |
Remove a PDBAtom. | |
void | spliceBefore (Residue &residue) throw () |
Cut all children of residue and prepend them before the children of this instance. | |
void | spliceAfter (Residue &residue) throw () |
Cut all children of residue and append them after the children of this instance. | |
void | splice (Residue &residue) throw () |
Move the children of residue into this instance. | |
Predicates | |
bool | isAminoAcid () const throw () |
Test if this residue is an amino acid. | |
bool | isTerminal () const throw () |
Test if this residue is terminal. | |
bool | isNTerminal () const throw () |
Test if this residue is N-terminal. | |
bool | isCTerminal () const throw () |
Test if this residue is C-terminal. | |
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. |
This class is used to represent residues in proteins.
|
Enum used to describe the kind of name constructed by getFullName .
|
|
The number of predefined properties for AtomContainer.
Reimplemented from Fragment. |
|
Append a PDBAtom at the last position.
|
|
Count the child PDBAtoms.
|
|
Internal state dump. Dump the current internal state to the output ostream s with dumping depth depth .
Reimplemented from Fragment. |
|
Assign a Residue object from another instance.
|
|
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.
|
|
Return the fully qualified name. Residue names are modified as follows:
|
|
Retrieve the ID.
|
|
Get the insertion code.
|
|
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 the parent secondary structure. The pointer is 0 if this instance does not have a parent secondary structure.
|
|
Get a pointer to the parent secondary structure. The pointer is 0 if this instance does not have a parent secondary structure.
|
|
Calculate the torsion angle phi.
|
|
Calculate the torsion angle psi.
|
|
Check whether the torsion angle phi is defined.
|
|
Check whether the torsion angle psi is defined.
|
|
Insert a PDBAtom at the last position.
|
|
Insert a PDBAtom after a given Composite object.
|
|
Insert a PDBAtom before a given Composite object.
|
|
Test if this residue is an amino acid. Returns true, if this instance has the property "PROPERTY__AMINO_ACID".
|
|
Test if this residue is C-terminal. Returns true, if this instance has the property "PROPERTY__AMINO_ACID" and is the last amino acid residue in its parent chain.
|
|
Test if this residue is N-terminal. Returns true, if this instance has the property "PROPERTY__AMINO_ACID" and is the first amino acid residue in its parent chain.
|
|
Test if this residue is terminal. Returns true, if this instance has the property "PROPERTY__AMINO_ACID" and is the first or last amino acid residue in its parent chain.
|
|
Internal state and consistency self-validation.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Equality operator. Two residues are equal if they have the same handle.
|
|
Reads a Residue object from a persistent stream.
Reimplemented from Fragment. |
|
Writes a Residue object to a persistent stream.
Reimplemented from Fragment. |
|
Prepend a PDBAtom at position 0.
|
|
Remove a PDBAtom.
|
|
Assignment with cloning facility. The assignment is either deep or shallow (default).
|
|
Set the ID.
|
|
Set the insertion code.
|
|
Move the children of The children are inserted using spliceBefore . |
|
Cut all children of
|
|
Cut all children of
|
|
Swap the contents of two Residue objects.
|