#include <BALL/KERNEL/protein.h>

Public Types | |
Enums | |
| enum | Property { NUMBER_OF_PROPERTIES = Molecule::NUMBER_OF_PROPERTIES } |
Public Member Functions | |
| bool | operator== (const Protein &protein) const |
| bool | operator!= (const Protein &protein) const |
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 () |
Persistence | |
| void | persistentWrite (PersistenceManager &pm, const char *name=0) const |
| void | persistentRead (PersistenceManager &pm) |
Assignment Methods | |
| void | set (const Protein &protein, bool deep=true) |
| Protein & | operator= (const Protein &protein) |
| void | get (Protein &protein, bool deep=true) const |
| void | swap (Protein &protein) |
Accessors | |
| Chain * | getChain (Position position) |
| const Chain * | getChain (Position position) const |
| SecondaryStructure * | getSecondaryStructure (Position position) |
| const SecondaryStructure * | getSecondaryStructure (Position position) const |
| Residue * | getResidue (Position position) |
| const Residue * | getResidue (Position position) const |
| Residue * | getResidueByID (String residue_ID) |
| const Residue * | getResidueByID (String residue_ID) const |
| Residue * | getNTerminal () |
| const Residue * | getNTerminal () const |
| Residue * | getCTerminal () |
| const Residue * | getCTerminal () const |
| PDBAtom * | getPDBAtom (Position position) |
| const PDBAtom * | getPDBAtom (Position position) const |
| void | setID (const String &id) |
| const String & | getID () const |
| Size | countChains () const |
| Size | countSecondaryStructures () const |
| Size | countResidues () const |
| Size | countPDBAtoms () const |
Debugging and Diagnostics | |
| virtual bool | isValid () const |
| virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Private Attributes | |
| String | id_ |
Protein Class. This class is used to represent proteins. A protein may contain several Chain , SecondaryStructure , and Residue .
Definition at line 28 of file protein.h.
Properties
Reimplemented from BALL::Molecule.
| BALL::Protein::Protein | ( | ) |
Default constructor.
Detailled constructor.
| virtual BALL::Protein::~Protein | ( | ) | [virtual] |
Destructor.
| virtual void BALL::Protein::clear | ( | ) | [virtual] |
Clears the contents of the protein.
Reimplemented from BALL::AtomContainer.
| 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.
Copy this instance to protein . The assignment is either deep or shallow (default).
| protein | the Protein to be assigned to |
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 |
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 | ( | ) |
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 |
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 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 otherwise Reimplemented from BALL::AtomContainer.
Inequality operator
Equality operator. Two proteins are equal if they have the same handle.
| void BALL::Protein::persistentRead | ( | PersistenceManager & | pm | ) | [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 [virtual] |
Writes a Protein object to a persistent stream.
| pm | the persistence manager |
Reimplemented from BALL::Molecule.
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 |
String BALL::Protein::id_ [private] |
1.6.3