Partial implementation of the ReverseTransliterator interface.
More...
#include <Bpp/Seq/Transliterator.h>
|
| | AbstractReverseTransliterator () |
| |
| virtual | ~AbstractReverseTransliterator () |
| |
| virtual const Alphabet * | getSourceAlphabet () const =0 |
| | Get the source alphabet. More...
|
| |
| virtual const Alphabet * | getTargetAlphabet () const =0 |
| | Get the target alphabet. More...
|
| |
| virtual int | reverse (int state) const =0 throw (BadIntException, Exception) |
| | Translate a given state coded as a int from target alphabet to source alphabet. More...
|
| |
| virtual std::string | reverse (const std::string &state) const =0 throw (BadCharException, Exception) |
| | Translate a given state coded as a string from target alphabet to source alphabet. More...
|
| |
| virtual Sequence * | reverse (const Sequence &sequence) const throw (AlphabetMismatchException, Exception) |
| | Translate a whole sequence from target alphabet to source 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...
|
| |
| 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 throw (AlphabetMismatchException, Exception) |
| | Translate a whole sequence from source alphabet to target alphabet. More...
|
| |
Partial implementation of the ReverseTransliterator interface.
Definition at line 167 of file Transliterator.h.
◆ AbstractReverseTransliterator()
| bpp::AbstractReverseTransliterator::AbstractReverseTransliterator |
( |
| ) |
|
|
inline |
◆ ~AbstractReverseTransliterator()
| virtual bpp::AbstractReverseTransliterator::~AbstractReverseTransliterator |
( |
| ) |
|
|
inlinevirtual |
◆ getSourceAlphabet()
| virtual const Alphabet* bpp::AbstractReverseTransliterator::getSourceAlphabet |
( |
| ) |
const |
|
pure virtual |
◆ getTargetAlphabet()
| virtual const Alphabet* bpp::AbstractReverseTransliterator::getTargetAlphabet |
( |
| ) |
const |
|
pure virtual |
◆ reverse() [1/3]
| virtual int bpp::AbstractReverseTransliterator::reverse |
( |
int |
state | ) |
const |
| throw | ( | BadIntException, |
| | Exception |
| ) | | |
|
pure virtual |
Translate a given state coded as a int from target alphabet to source alphabet.
- Parameters
-
| state | A state in target alphabet. |
- Returns
- The corresponding state in source alphabet.
- Exceptions
-
| BadIntException | If the state is not a proper state for target alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implements bpp::ReverseTransliterator.
Implemented in bpp::DNAToRNA.
Referenced by bpp::DNAToRNA::reverse().
◆ reverse() [2/3]
| virtual std::string bpp::AbstractReverseTransliterator::reverse |
( |
const std::string & |
state | ) |
const |
| throw | ( | BadCharException, |
| | Exception |
| ) | | |
|
pure virtual |
Translate a given state coded as a string from target alphabet to source alphabet.
- Parameters
-
| state | A state in target alphabet. |
- Returns
- The corresponding state in source alphabet.
- Exceptions
-
| BadCharException | If the state is not a proper state for target alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implements bpp::ReverseTransliterator.
Implemented in bpp::DNAToRNA.
◆ reverse() [3/3]
◆ translate() [1/6]
| virtual int bpp::Transliterator::translate |
( |
int |
state | ) |
const |
| throw | ( | BadIntException, |
| | Exception |
| ) | | |
|
pure virtualinherited |
◆ translate() [2/6]
| virtual std::string bpp::Transliterator::translate |
( |
const std::string & |
state | ) |
const |
| throw | ( | BadCharException, |
| | Exception |
| ) | | |
|
pure virtualinherited |
◆ translate() [3/6]
◆ translate() [4/6]
| virtual int bpp::AbstractTransliterator::translate |
( |
int |
state | ) |
const |
| throw | ( | BadIntException, |
| | Exception |
| ) | | |
|
pure virtualinherited |
◆ translate() [5/6]
| virtual std::string bpp::AbstractTransliterator::translate |
( |
const std::string & |
state | ) |
const |
| throw | ( | BadCharException, |
| | Exception |
| ) | | |
|
pure virtualinherited |
Translate a given state coded as a string from source alphabet to target alphabet.
- Parameters
-
| state | A state in source alphabet. |
- Returns
- The corresponding state in target alphabet.
- Exceptions
-
| BadCharException | If the state is not a proper state for source alphabet. |
| Exception | Other kind of error, depending on the implementation. |
Implements bpp::Transliterator.
Implemented in bpp::GeneticCode, and bpp::DNAToRNA.
◆ translate() [6/6]
The documentation for this class was generated from the following files: