#include <protein.h>
Inheritance diagram for Protein:
Public Types | |
Enums | |
enum | Property { NUMBER_OF_PROPERTIES = Molecule::NUMBER_OF_PROPERTIES } |
Properties. | |
Public Member Functions | |
bool | operator== (const Protein &protein) const throw () |
Equality operator. | |
bool | operator!= (const Protein &protein) const throw () |
Inequality operator. | |
Constructors and Destructors | |
Protein () throw () | |
Default constructor. | |
Protein (const Protein &protein, bool deep=true) throw () | |
Copy constructor. | |
Protein (const String &name, const String &id=BALL_PROTEIN_DEFAULT_ID) throw () | |
Detailled constructor. | |
virtual | ~Protein () throw () |
Destructor. | |
virtual void | clear () throw () |
Clears the contents of the protein. | |
virtual void | destroy () throw () |
Clear the contents of this instance of AtomContainer and removes it from parent composite structures. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a Protein object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a Protein object from a persistent stream. | |
Assignment Methods | |
void | set (const Protein &protein, bool deep=true) throw () |
Assignment with cloning facility. | |
Protein & | operator= (const Protein &protein) throw () |
Assignment operator. | |
void | get (Protein &protein, bool deep=true) const throw () |
Copy this instance to protein . | |
void | swap (Protein &protein) throw () |
Swapping of two proteins. | |
Accessors | |
Chain * | getChain (Position position) throw () |
Get a pointer to a child chain at a given position. | |
const Chain * | getChain (Position position) const throw () |
Get a pointer to a child chain at a given position. | |
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 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 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 PDB-Atom at a given position. | |
const PDBAtom * | getPDBAtom (Position position) const throw () |
Get a pointer to a child PDB-Atom at a given position. | |
void | setID (const String &id) throw () |
Set the ID of the NucleicAcid. | |
const String & | getID () const throw () |
Retrieve the ID of the NucleicAcid. | |
Size | countChains () const throw () |
Count the child chains. | |
Size | countSecondaryStructures () const throw () |
Count the child SecondaryStructures. | |
Size | countResidues () const throw () |
Count the child Residues. | |
Size | countPDBAtoms () const throw () |
Count the child PDB-Atoms. | |
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 proteins. A protein may contain several Chain , SecondaryStructure , and Residue .
|
Count the child chains.
|
|
Count the child PDB-Atoms.
|
|
Count the child Residues.
|
|
Count the child SecondaryStructures.
|
|
Clear the contents of this instance of AtomContainer and removes it from parent composite structures. This methods clears the base fragment's name, destroys all its children (as in Composite::destroy ), and removes it from its parent composite structures. Reimplemented from AtomContainer. |
|
Internal state dump. Dump the current internal state to the output ostream s with dumping depth depth .
Reimplemented from Molecule. |
|
Copy this instance to protein . The assignment is either deep or shallow (default).
|
|
Get a pointer to a child chain at a given position. The pointer is 0 if this instance does not have a chain at the given position.
|
|
Get a pointer to a child chain at a given position. The pointer is 0 if this instance does not have a chain at the given position.
|
|
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".
|
|
Retrieve the ID of the NucleicAcid.
|
|
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 PDB-Atom at a given position. The pointer is 0 if this instance does not have a PDB-Atom at the given position.
|
|
Get a pointer to a child PDB-Atom at a given position. The pointer is 0 if this instance does not have a PDB-Atom 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.
|
|
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 SecondaryStructure at a given position. The pointer is 0 if this instance does not have a SecondaryStructure at the given 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 the given position.
|
|
Internal state and consistency self-validation.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Assignment operator.
|
|
Equality operator. Two proteins are equal if they have the same handle.
|
|
Reads a Protein object from a persistent stream.
Reimplemented from Molecule. |
|
Writes a Protein object to a persistent stream.
Reimplemented from Molecule. |
|
Assignment with cloning facility. The assignment is either deep or shallow (default).
|
|
Set the ID of the NucleicAcid.
|
|
Swapping of two proteins.
|