#include <nucleicAcid.h>
Inheritance diagram for NucleicAcid:
Public Types | |
Enums | |
enum | Property { NUMBER_OF_PROPERTIES = Molecule::NUMBER_OF_PROPERTIES } |
Properties. | |
Public Member Functions | |
bool | operator== (const NucleicAcid &nucleic_acid) const throw () |
Equality operator. | |
bool | operator!= (const NucleicAcid &nucleic_acid) const throw () |
Inequality operator. | |
Constructors and Destructors | |
NucleicAcid () throw () | |
Default constructor. | |
NucleicAcid (const NucleicAcid &nucleic_acid, bool deep=true) throw () | |
Copy constructor. | |
NucleicAcid (const String &name, const String &id=BALL_NUCLEICACID_DEFAULT_ID) throw () | |
Detailed constructor. | |
virtual | ~NucleicAcid () throw () |
Destructor. | |
virtual void | clear () throw () |
Clear the contents of the nucleic acid. | |
virtual void | destroy () throw () |
Clear the contents of the nucleic acid and remove it from parent kernel objects. | |
Persistence | |
void | persistentWrite (PersistenceManager &pm, const char *name=0) const throw (Exception::GeneralException) |
Writes a NucleicAcid object to a persistent stream. | |
void | persistentRead (PersistenceManager &pm) throw (Exception::GeneralException) |
Reads a NucleicAcid object from a persistent stream. | |
Assignment Methods | |
void | set (const NucleicAcid &nucleic_acid, bool deep=true) throw () |
Assignment with cloning facility. | |
NucleicAcid & | operator= (const NucleicAcid &nucleic_acid) throw () |
Assignment operator. | |
void | get (NucleicAcid &nucleic_acid, bool deep=true) const throw () |
Assign a NucleicAcid object from another. | |
void | swap (NucleicAcid &nucleic_acid) throw () |
Swap the contents of two NucleicAcid objects. | |
Accessors | |
Nucleotide * | getNucleotide (Position position) throw () |
Get a pointer to a child Nucleotide at a given position. | |
const Nucleotide * | getNucleotide (Position position) const throw () |
Get a pointer to a child Nucleotide at a given position. | |
Nucleotide * | get3Prime () throw () |
Retrieve a pointer to the Nucleotide at the 3'-end of this instance. | |
const Nucleotide * | get3Prime () const throw () |
Retrieve a const pointer to the nucleotide at the 3'-end of this instance. | |
Nucleotide * | get5Prime () throw () |
Retrieve a pointer to the Nucleotide at the 5'-end of this instance. | |
const Nucleotide * | get5Prime () const throw () |
Retrieve a const pointer to the Nucleotide at the 5'-end of this instance. | |
void | setID (const String &id) throw () |
Set the ID of the NucleicAcid. | |
const String & | getID () const throw () |
Retrieve the ID of the NucleicAcid. | |
Size | countNucleotides () const throw () |
Return the number of Nucleotides contained in this instance NucleicAcid. | |
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. |
|
Default constructor.
|
|
Copy constructor.
|
|
Detailed constructor.
|
|
Destructor.
|
|
Clear the contents of the nucleic acid.
Reimplemented from AtomContainer. |
|
Return the number of Nucleotides contained in this instance NucleicAcid.
|
|
Clear the contents of the nucleic acid and remove it from parent kernel objects.
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 Molecule. |
|
Assign a NucleicAcid object from another.
|
|
Retrieve a const pointer to the nucleotide at the 3'-end of this instance. The pointer is 0 if this instance does not have a Nucleotide.
|
|
Retrieve a pointer to the Nucleotide at the 3'-end of this instance. The pointer is 0 if this instance does not have a Nucleotide.
|
|
Retrieve a const pointer to the Nucleotide at the 5'-end of this instance. The pointer is 0 if this instance does not have a Nucleotide.
|
|
Retrieve a pointer to the Nucleotide at the 5'-end of this instance. The pointer is 0 if this instance does not have a Nucleotide.
|
|
Retrieve the ID of the NucleicAcid.
|
|
Get a pointer to a child Nucleotide at a given position. The pointer is 0 if this instance does not have a Nucleotide at the given position.
|
|
Get a pointer to a child Nucleotide at a given position. The pointer is 0 if this instance does not have a Nucleotide at the given position.
|
|
Internal state and consistency self-validation.
Reimplemented from AtomContainer. |
|
Inequality operator.
|
|
Assignment operator.
|
|
Equality operator. Two nucleic acids are equal if they have the same handle.
|
|
Reads a NucleicAcid object from a persistent stream.
Reimplemented from Molecule. |
|
Writes a NucleicAcid 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.
|
|
Swap the contents of two NucleicAcid objects.
|