40 #ifndef _CODONALPHABET_H_ 41 #define _CODONALPHABET_H_ 93 return "Codon alphabet("+
vAbsAlph_[0]->getAlphabetType() +
")";
126 virtual std::string
getCodon(
const std::string& pos1,
const std::string& pos2,
const std::string& pos3)
const throw (
BadCharException);
189 #endif //_CODONALPHABET_H_ An alphabet exception thrown when trying to specify a bad char to the alphabet.
This alphabet is used to deal NumericAlphabet.
std::string getAlphabetType() const
Identification method.
virtual int getCodon(int pos1, int pos2, int pos3) const
Get the int code for a codon given the int code of the three underlying positions.
The base class for word alphabets.
WordAlphabet & operator=(const WordAlphabet &bia)
virtual int getFirstPosition(int codon) const
Get the int code of the first position of a codon given its int description.
CodonAlphabet(const CodonAlphabet &bia)
std::vector< const Alphabet *> vAbsAlph_
virtual int getSecondPosition(int codon) const
Get the int code of the second position of a codon given its int description.
virtual const NucleicAlphabet *const getNucleicAlphabet() const
CodonAlphabet & operator=(const CodonAlphabet &bia)
An alphabet exception thrown when trying to specify a bad int to the alphabet.
The abstract base class for nucleic alphabets.
virtual int getThirdPosition(int codon) const
Get the int code of the third position of a codon given its int description.
CodonAlphabet(const NucleicAlphabet *alpha)
Builds a new codon alphabet from a nucleic alphabet.
CodonAlphabet * clone() const