39 #ifndef _DEFAULTALPHABET_H_ 40 #define _DEFAULTALPHABET_H_ 43 #include <Bpp/Text/TextTools.h> 87 unsigned int getSize()
const {
return 26; }
92 bool isUnresolved(
const std::string& state)
const {
return false; }
98 #endif // _DEFAULTALPHABET_H_ LetterAlphabet & operator=(const LetterAlphabet &bia)
This is the base class to describe states in an Alphabet.
virtual ~DefaultAlphabet()
int getUnknownCharacterCode() const
DefaultAlphabet & operator=(const DefaultAlphabet &bia)
This alphabet is used to deal NumericAlphabet.
unsigned int getNumberOfTypes() const
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
DefaultAlphabet * clone() const
std::string getAlphabetType() const
Identification method.
Specialized partial implementation of Alphabet using single letters.
unsigned int getSize() const
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet). This is the method you'll need in most cases.
The DefaultAlphabet class.
DefaultAlphabet(const DefaultAlphabet &bia)
bool isUnresolved(const std::string &state) const
void registerState(AlphabetState *st)
Add a state to the Alphabet.
bool isUnresolved(int state) const
virtual void registerState(AlphabetState *st)
Add a state to the Alphabet.