5 #ifndef BPP_PHYL_MODEL_STATEMAP_H
6 #define BPP_PHYL_MODEL_STATEMAP_H
39 virtual std::shared_ptr<const Alphabet>
getAlphabet()
const = 0;
75 virtual std::vector<size_t>
getModelStates(
const std::string& code)
const = 0;
A convenience partial implementation of the StateMap interface.
size_t getNumberOfModelStates() const override
AbstractStateMap(std::shared_ptr< const Alphabet > alphabet)
std::shared_ptr< const Alphabet > getAlphabet() const override
const Alphabet & alphabet() const override
AbstractStateMap & operator=(const AbstractStateMap &absm)
bool operator!=(const StateMapInterface &sm) const override
Comparison operator!=.
AbstractStateMap(const AbstractStateMap &absm)
std::string getAlphabetStateAsChar(size_t index) const override
std::vector< size_t > getModelStates(int code) const override
std::vector< size_t > getModelStates(const std::string &code) const override
int getAlphabetStateAsInt(size_t index) const override
const std::vector< int > & getAlphabetStates() const override
std::shared_ptr< const Alphabet > alphabet_
bool operator==(const StateMapInterface &sm) const override
Comparison operator==.
std::vector< int > states_
virtual std::string getAlphabetType() const=0
This class implements a state map where all resolved states are modeled.
virtual std::string getStateDescription(size_t index) const
CanonicalStateMap(std::shared_ptr< const Alphabet > alphabet, bool includeGaps)
virtual CanonicalStateMap * clone() const
This class implements a state map for Markov modulated models.
virtual MarkovModulatedStateMap * clone() const
MarkovModulatedStateMap(const StateMapInterface &unitMap, unsigned int nbClasses)
virtual std::string getStateDescription(size_t index) const
Map the states of a given alphabet which have a model state.
virtual std::string getAlphabetStateAsChar(size_t index) const =0
virtual const Alphabet & alphabet() const =0
virtual std::shared_ptr< const Alphabet > getAlphabet() const =0
virtual bool operator!=(const StateMapInterface &sm) const =0
Comparison operator!=.
virtual ~StateMapInterface()
virtual size_t getNumberOfModelStates() const =0
virtual bool operator==(const StateMapInterface &sm) const =0
Comparison operator==.
virtual std::string getStateDescription(size_t index) const =0
virtual std::vector< size_t > getModelStates(const std::string &code) const =0
virtual int getAlphabetStateAsInt(size_t index) const =0
virtual std::vector< size_t > getModelStates(int code) const =0
virtual StateMapInterface * clone() const override=0
virtual const std::vector< int > & getAlphabetStates() const =0
std::string toString(T t)
Defines the basic types of data flow nodes.