5 #ifndef BPP_SEQ_DNATORNA_H
6 #define BPP_SEQ_DNATORNA_H
40 AbstractReverseTransliterator::operator=(d2r);
59 std::string
translate(
const std::string& state)
const override;
66 int reverse(
int state)
const override;
68 std::string
reverse(
const std::string& state)
const override;
Partial implementation of the ReverseTransliterator interface.
int reverse(int state) const override=0
Translate a given state coded as a int from target alphabet to source alphabet.
int translate(int state) const override=0
Translate a given state coded as a int from source alphabet to target alphabet.
Reverse iterator to convert RNA to DNA.
std::unique_ptr< Sequence > reverse(const SequenceInterface &sequence) const override
Translate a whole sequence from target alphabet to source alphabet.
std::shared_ptr< const Alphabet > getSourceAlphabet() const override
Get the source alphabet.
int reverse(int state) const override
Translate a given state coded as a int from target alphabet to source alphabet.
std::shared_ptr< const Alphabet > getTargetAlphabet() const override
Get the target alphabet.
const Alphabet & targetAlphabet() const override
Get the target alphabet.
int translate(int state) const override
Translate a given state coded as a int from source alphabet to target alphabet.
const Alphabet & sourceAlphabet() const override
Get the source alphabet.
std::shared_ptr< const Alphabet > rna_
std::shared_ptr< const Alphabet > dna_
DNAToRNA(const DNAToRNA &d2r)
std::unique_ptr< Sequence > translate(const SequenceInterface &sequence) const override
Translate a whole sequence from source alphabet to target alphabet.
DNAToRNA & operator=(const DNAToRNA &d2r)
This alphabet is used to deal NumericAlphabet.