8 #include "ExceptionsDna.h" 15 enum NucleotideValue { ADENINE =
'A', CYTOSINE =
'C', GUANINE =
'G' , THYMINE =
'T', ANY_NUCLEOTIDE =
'N'};
80 os << static_cast<char>(n.
get());
the DNA nucleotide
Definition: Nucleotide.h:21
the exception thrown when unknown nucleotide (bad letter) occures
Definition: ExceptionsDna.h:17
NucleotideValue
Definition: Nucleotide.h:15
Nucleotide complementary() const
Definition: Nucleotide.h:43
NucleotideValue get() const
Definition: Nucleotide.h:33
Nucleotide(const NucleotideValue &val=ANY_NUCLEOTIDE)
Definition: Nucleotide.h:26
std::ostream & operator<<(std::ostream &os, const Chain &chain)
Definition: Chain.h:162
bool operator==(const Nucleotide &n) const
Definition: Nucleotide.h:36
bool operator!=(const Nucleotide &n) const
Definition: Nucleotide.h:38
Nucleotide create(const char &n)
Definition: Nucleotide.h:60
bool operator<(const Nucleotide &n) const
Definition: Nucleotide.h:40