5 #ifndef BPP_SEQ_ALPHABET_INTEGERALPHABET_H
6 #define BPP_SEQ_ALPHABET_INTEGERALPHABET_H
57 bool isUnresolved(
const std::string& state)
const {
return state ==
"-" or state ==
"?"; }
A partial implementation of the Alphabet interface.
AbstractAlphabet & operator=(const AbstractAlphabet &alph)
The Integer Alphabet class, letters are from 0 to a given number, MAX.
IntegerAlphabet(unsigned int max)
unsigned int getNumberOfTypes() const
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
int getUnknownCharacterCode() const
virtual ~IntegerAlphabet()
bool isUnresolved(int state) const
bool isUnresolved(const std::string &state) const
unsigned int getSize() const
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet)....
std::string getAlphabetType() const
Identification method.
IntegerAlphabet(const IntegerAlphabet &bia)
IntegerAlphabet * clone() const
IntegerAlphabet & operator=(const IntegerAlphabet &bia)
std::string toString(T t)
This alphabet is used to deal NumericAlphabet.