#include <protein.h>
Public Types |
|
Enums
|
|
enum | Property { NUMBER_OF_PROPERTIES = Molecule::NUMBER_OF_PROPERTIES } |
Properties. |
|
Public Member Functions |
|
bool | operator== (const Protein &protein) const |
Equality operator. |
|
bool | operator!= (const Protein &protein) const |
Inequality operator. |
|
Constructors and Destructors
|
|
Protein () | |
Default constructor. |
|
Protein (const Protein &protein, bool deep=true) | |
Copy constructor. |
|
Protein (const String &name, const String &id=BALL_PROTEIN_DEFAULT_ID) | |
Detailled constructor. |
|
virtual | ~Protein () |
Destructor. |
|
virtual void | clear () |
Clears the contents of the
protein. |
|
virtual void | destroy () |
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) |
Assignment with cloning facility.
|
|
Protein & | operator= (const Protein &protein) |
Assignment operator. |
|
void | get (Protein &protein, bool deep=true) const |
Copy this instance to protein
. |
|
void | swap (Protein &protein) |
Swapping of two proteins. |
|
Accessors
|
|
Chain * | getChain (Position position) |
Get a pointer to a child chain at a
given position. |
|
const Chain * | getChain (Position position) const |
Get a pointer to a child chain at a
given position. |
|
SecondaryStructure * | getSecondaryStructure (Position position) |
Get a pointer to a child SecondaryStructure at a
given position. |
|
const SecondaryStructure * | getSecondaryStructure (Position position) const |
Get a pointer to a child SecondaryStructure at a
given position. |
|
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 PDB-Atom at
a given position. |
|
const PDBAtom * | getPDBAtom (Position position) const |
Get a pointer to a child PDB-Atom at
a given position. |
|
void | setID (const String &id) |
Set the ID of the NucleicAcid. |
|
const String & | getID () const |
Retrieve the ID of the NucleicAcid. |
|
Size | countChains () const |
Count the child chains. |
|
Size | countSecondaryStructures () const |
Count the child SecondaryStructures.
|
|
Size | countResidues () const |
Count the child Residues. |
|
Size | countPDBAtoms () const |
Count the child PDB-Atoms. |
|
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. |
This class is used to represent proteins. A protein may contain several Chain , SecondaryStructure , and Residue .
Size BALL::Protein::countChains | ( | ) | const |
Count the child chains.
Size BALL::Protein::countPDBAtoms | ( | ) | const |
Count the child PDB-Atoms.
Size BALL::Protein::countResidues | ( | ) | const |
Count the child Residues.
Size BALL::Protein::countSecondaryStructures | ( | ) | const |
Count the child SecondaryStructures.
virtual void BALL::Protein::destroy | ( | ) | [virtual] |
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 BALL::AtomContainer.
virtual void BALL::Protein::dump | ( | std::ostream & | s =
std::cout , |
|
Size | depth =
0 |
|||
) | const [virtual] |
Internal state dump.
Dump the current internal state to the output ostream s with dumping depth depth .
s | output stream where to output the internal state | |
depth | the dumping depth |
Reimplemented from BALL::Molecule.
void BALL::Protein::get | ( | Protein & | protein, | |
bool | deep =
true |
|||
) | const |
Copy this instance to protein .
The assignment is either deep or shallow (default).
protein | the Protein to be assigned to |
const Chain* BALL::Protein::getChain | ( | Position | position | ) | const |
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.
position | the position of the child chain |
Chain* BALL::Protein::getChain | ( | Position | 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.
position | the position of the child chain |
const Residue* BALL::Protein::getCTerminal | ( | ) | const |
Residue* BALL::Protein::getCTerminal | ( | ) |
const String& BALL::Protein::getID | ( | ) | const |
Retrieve the ID of the NucleicAcid.
const Residue* BALL::Protein::getNTerminal | ( | ) | const |
Residue* BALL::Protein::getNTerminal | ( | ) |
const PDBAtom* BALL::Protein::getPDBAtom | ( | Position | position | ) | const |
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.
position | the position of the child PDB-Atom |
PDBAtom* BALL::Protein::getPDBAtom | ( | Position | 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.
position | the position of the child PDB-Atom |
const Residue* BALL::Protein::getResidue | ( | Position | position | ) | const |
Residue* BALL::Protein::getResidue | ( | Position | position | ) |
const SecondaryStructure* BALL::Protein::getSecondaryStructure | ( | Position | position | ) | const |
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.
position | the position of the child SecondaryStructure |
SecondaryStructure* BALL::Protein::getSecondaryStructure | ( | Position | 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.
position | the position of the child SecondaryStructure |
virtual bool BALL::Protein::isValid | ( | ) | const [virtual] |
Internal state and consistency self-validation.
true
if the internal state of this
instance is correct (self-validated) and consistent,
false
otherwiseReimplemented from BALL::AtomContainer.
bool BALL::Protein::operator!= | ( | const Protein & | protein | ) | const |
Inequality operator.
bool BALL::Protein::operator== | ( | const Protein & | protein | ) | const |
Equality operator.
Two proteins are equal if they have the same handle.
void BALL::Protein::persistentRead | ( | PersistenceManager & | pm | ) | throw (Exception::GeneralException)
[virtual] |
Reads a Protein object from a persistent stream.
pm | the persistence manager |
Reimplemented from BALL::Molecule.
void BALL::Protein::persistentWrite | ( | PersistenceManager & | pm, | |
const char * | name =
0 |
|||
) | const throw (Exception::GeneralException)
[virtual] |
Writes a Protein object to a persistent stream.
pm | the persistence manager |
Reimplemented from BALL::Molecule.
void BALL::Protein::set | ( | const Protein & | protein, | |
bool | deep =
true |
|||
) |
Assignment with cloning facility.
The assignment is either deep or shallow (default).
protein | the Protein to be copied (cloned) | |
deep | make a deep (=true ) or shallow
(=false ) copy |
void BALL::Protein::setID | ( | const String & | id | ) |
Set the ID of the NucleicAcid.
id | the new ID |
void BALL::Protein::swap | ( | Protein & | protein | ) |
Swapping of two proteins.
protein | to swap with this instance |