|
bpp-seq
2.2.0
|
This interface is used when translating a sequence from an alphabet to another: it gives the translation rules, eg: RNA -> DNA. More...
#include <Bpp/Seq/Transliterator.h>
Inheritance diagram for bpp::Transliterator:Public Member Functions | |
| Transliterator () | |
| virtual | ~Transliterator () |
| virtual const Alphabet * | getSourceAlphabet () const =0 |
| Get the source alphabet. More... | |
| virtual const Alphabet * | getTargetAlphabet () const =0 |
| Get the target alphabet. More... | |
| virtual int | translate (int state) const =0 throw (BadIntException, Exception) |
| Translate a given state coded as a int from source alphabet to target alphabet. More... | |
| virtual std::string | translate (const std::string &state) const =0 throw (BadCharException, Exception) |
| Translate a given state coded as a string from source alphabet to target alphabet. More... | |
| virtual Sequence * | translate (const Sequence &sequence) const =0 throw (AlphabetMismatchException, Exception) |
| Translate a whole sequence from source alphabet to target alphabet. More... | |
This interface is used when translating a sequence from an alphabet to another: it gives the translation rules, eg: RNA -> DNA.
Definition at line 52 of file Transliterator.h.
|
inline |
Definition at line 55 of file Transliterator.h.
|
inlinevirtual |
Definition at line 56 of file Transliterator.h.
|
pure virtual |
Get the source alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::GeneticCode, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual |
Get the target alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::GeneticCode, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual | ||||||||||||||||||
Translate a given state coded as a int from source alphabet to target alphabet.
| state | A state in source alphabet. |
| BadIntException | If the state is not a proper state for source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implemented in bpp::AbstractTransliterator, bpp::GeneticCode, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual | ||||||||||||||||||
Translate a given state coded as a string from source alphabet to target alphabet.
| state | A state in source alphabet. |
| BadCharException | If the state is not a proper state for source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implemented in bpp::AbstractTransliterator, bpp::GeneticCode, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual | ||||||||||||||||||
Translate a whole sequence from source alphabet to target alphabet.
| sequence | A sequence in source alphabet. |
| AlphabetMismatchException | If the sequence alphabet do not match the source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implemented in bpp::AbstractTransliterator, bpp::GeneticCode, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.