40 #ifndef _TRANSLITERATOR_H_ 41 #define _TRANSLITERATOR_H_ 186 #endif //_TRANSLITERATOR_H_ virtual ~AbstractReverseTransliterator()
This interface is used when translating a sequence from an alphabet to another: it gives the translat...
virtual int reverse(int state) const =0
Translate a given state coded as a int from target alphabet to source alphabet.
An alphabet exception thrown when trying to specify a bad char to the alphabet.
This alphabet is used to deal NumericAlphabet.
Partial implementation of the Transliterator interface.
virtual ~ReverseTransliterator()
virtual const Alphabet * getSourceAlphabet() const =0
Get the source alphabet.
virtual int translate(int state) const =0
Translate a given state coded as a int from source alphabet to target alphabet.
AbstractReverseTransliterator()
virtual ~AbstractTransliterator()
virtual const Alphabet * getSourceAlphabet() const =0
Get the source alphabet.
virtual int translate(int state) const =0
Translate a given state coded as a int from source alphabet to target alphabet.
virtual int reverse(int state) const =0
Translate a given state coded as a int from target alphabet to source alphabet.
virtual const Alphabet * getTargetAlphabet() const =0
Get the target alphabet.
An alphabet exception thrown when trying to specify a bad int to the alphabet.
Exception thrown when two alphabets do not match.
virtual const Alphabet * getTargetAlphabet() const =0
Get the target alphabet.
Partial implementation of the ReverseTransliterator interface.
The same as previous, but can perform the reverse translation, eg: RNA -> DNA and DNA -> RNA;...
virtual ~Transliterator()