bpp-seq3
3.0.0
|
Partial implementation of the Transliterator interface. More...
#include <Bpp/Seq/Transliterator.h>
Public Member Functions | |
AbstractTransliterator () | |
virtual | ~AbstractTransliterator () |
int | translate (int state) const override=0 |
Translate a given state coded as a int from source alphabet to target alphabet. More... | |
std::string | translate (const std::string &state) const override=0 |
Translate a given state coded as a string from source alphabet to target alphabet. More... | |
std::unique_ptr< Sequence > | translate (const SequenceInterface &sequence) const override |
Translate a whole sequence from source alphabet to target alphabet. More... | |
virtual std::shared_ptr< const Alphabet > | getSourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual const Alphabet & | sourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual std::shared_ptr< const Alphabet > | getTargetAlphabet () const =0 |
Get the target alphabet. More... | |
virtual const Alphabet & | targetAlphabet () const =0 |
Get the target alphabet. More... | |
Partial implementation of the Transliterator interface.
Definition at line 116 of file Transliterator.h.
|
inline |
Definition at line 120 of file Transliterator.h.
|
inlinevirtual |
Definition at line 121 of file Transliterator.h.
|
pure virtualinherited |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtualinherited |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtualinherited |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, and bpp::DNAToRNA.
|
pure virtualinherited |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, and bpp::DNAToRNA.
|
overridevirtual |
Translate a whole sequence from source alphabet to target alphabet.
sequence | A sequence in source alphabet. |
Implements bpp::TransliteratorInterface.
Definition at line 13 of file Transliterator.cpp.
References bpp::CruxSymbolListInterface::alphabet(), bpp::CruxSymbolListInterface::getAlphabet(), bpp::Alphabet::getAlphabetType(), bpp::Commentable::getComments(), bpp::CoreSequenceInterface::getName(), bpp::TemplateCoreSymbolListInterface< T >::getValue(), and bpp::CruxSymbolListInterface::size().
|
overridepure virtual |
Translate a given state coded as a string from source alphabet to target alphabet.
state | A state in source alphabet. |
Implements bpp::TransliteratorInterface.
Implemented in bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
overridepure virtual |
Translate a given state coded as a int from source alphabet to target alphabet.
state | A state in source alphabet. |
Implements bpp::TransliteratorInterface.
Implemented in bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
Referenced by bpp::AllelicAlphabet::AllelicTransliterator::translate(), bpp::DNAToRNA::translate(), and bpp::GeneticCode::translate().