#include <nucleotide.h>
Inheritance diagram for Nucleotide:
Public Types | |
Enums | |
enum | Property { PROPERTY__5_PRIME = Residue::NUMBER_OF_PROPERTIES + 1, PROPERTY__3_PRIME, PROPERTY__NUCLEOTIDE, NUMBER_OF_PROPERTIES } |
The number of predefined properties for AtomContainer. | |
Public Member Functions | |
bool | operator== (const Nucleotide &nucleotide) const throw () |
Equality operator. | |
bool | operator!= (const Nucleotide &nucleotide) const throw () |
Inequality operator. | |
Constructors and Destructors | |
Nucleotide () throw () | |
Default constructor. | |
Nucleotide (const Nucleotide &nucleotide, bool deep=true) throw () | |
Copy constructor. | |
Nucleotide (const String &name, const String &id=BALL_NUCLEOTIDE_DEFAULT_ID, char insertion_code=BALL_NUCLEOTIDE_DEFAULT_INSERTION_CODE) throw () | |
Detailled constructor. | |
virtual | ~Nucleotide () throw () |
Destructor. | |
virtual void | clear () throw () |
Clears the nucleotides contents. | |
virtual void | destroy () throw () |
Clears the nucleotides contents and removes it from all composite structures. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a Nucleotide object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a Nucleotide object from a persistent stream. | |
Assignment | |
void | set (const Nucleotide &nucleotide, bool deep=true) throw () |
Assignment with cloning facility. | |
Nucleotide & | operator= (const Nucleotide &nucleotide) throw () |
Assignment operator. | |
void | get (Nucleotide &nucleotide, bool deep=true) const throw () |
Copy this instance to nucleotide . | |
void | swap (Nucleotide &nucleotide) throw () |
Swapping of instaces of nucleotide. | |
Accessors | |
NucleicAcid * | getNucleicAcid () throw () |
Get a pointer to the parent NucleicAcid. | |
const NucleicAcid * | getNucleicAcid () const throw () |
Get a pointer to the parent NucleicAcid. | |
void | setID (const String &id) throw () |
Set the ID of the nucleotide. | |
const String & | getID () const throw () |
Retrieve the ID of the nucleotide. | |
void | setInsertionCode (char insertion_code) throw () |
Set the insertion code of the nucleotide. | |
char | getInsertionCode () const throw () |
Retrieve the insertion code of the nucleotide. | |
void | prepend (Atom &atom) throw () |
Prepend an atom at position 0. | |
void | append (Atom &atom) throw () |
Append an atom after the last position. | |
void | insert (Atom &atom) throw () |
Insert an atom after the last position. | |
void | insertBefore (Atom &atom, Composite &before) throw () |
Insert an atom before a given Composite object. | |
void | insertAfter (Atom &atom, Composite &after) throw () |
Insert an atom after a given Composite object. | |
bool | remove (Atom &atom) throw () |
Remove an atom. | |
void | spliceBefore (Nucleotide &nucleotide) throw () |
Cut all children of nucleotide and prepend them before the children of this instance. | |
void | spliceAfter (Nucleotide &nucleotide) throw () |
Cut all children of nucleotide and append them after the children of this instance. | |
void | splice (Nucleotide &nucleotide) throw () |
Move the children of nucleotide into this instance. | |
Predicates | |
bool | isTerminal () const throw () |
Test if this instance nucleotide is terminal. | |
bool | is3Prime () const throw () |
Test if this instance nucleotide is 3-prime. | |
bool | is5Prime () const throw () |
Test if this instance nucleotide is 5-prime. | |
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 nucleotides within an NucleicAcid object.
|
Append an atom after the last position.
Reimplemented from AtomContainer. |
|
Internal state dump. Dump the current internal state of this instance to the output ostream s with dumping depth depth .
Reimplemented from Fragment. |
|
Copy this instance to nucleotide . The assignment is either deep or shallow (default).
|
|
Retrieve the ID of the nucleotide.
|
|
Retrieve the insertion code of the nucleotide.
|
|
Get a pointer to the parent NucleicAcid. The pointer is 0 if this instance nucleotide does not have a parent NucleicAcid.
|
|
Get a pointer to the parent NucleicAcid. The pointer is 0 if this instance nucleotide does not have a parent NucleicAcid.
|
|
Insert an atom after the last position.
Reimplemented from AtomContainer. |
|
Insert an atom after a given Composite object.
Reimplemented from AtomContainer. |
|
Insert an atom before a given Composite object.
Reimplemented from AtomContainer. |
|
Test if this instance nucleotide is 3-prime. Returns true, if this instance is the first nucleotide in its parent NucleicAcid.
|
|
Test if this instance nucleotide is 5-prime. Returns true, if this instance is the last nucleotide in its parent NucleicAcid.
|
|
Test if this instance nucleotide is terminal. Returns true, if this instance is the first or last nucleotide in its parent NucleicAcid.
|
|
Internal state and consistency self-validation.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Assignment operator. The assignment is either deep or shallow (default).
|
|
Equality operator. Two nucleotides are equal if they have the same handle.
|
|
Reads a Nucleotide object from a persistent stream.
Reimplemented from Fragment. |
|
Writes a Nucleotide object to a persistent stream.
Reimplemented from Fragment. |
|
Prepend an atom at position 0.
Reimplemented from AtomContainer. |
|
Remove an atom.
Reimplemented from AtomContainer. |
|
Assignment with cloning facility. The assignment is either deep or shallow (default).
|
|
Set the ID of the nucleotide.
|
|
Set the insertion code of the nucleotide.
|
|
Move the children of The children are inserted using spliceBefore . |
|
Cut all children of
|
|
Cut all children of
|
|
Swapping of instaces of nucleotide.
|