bpp-phyl
2.2.0
|
A convenience partial implementation of the StateMap interface. More...
#include <Bpp/Phyl/Model/StateMap.h>
Public Member Functions | |
AbstractStateMap (const Alphabet *alphabet) | |
AbstractStateMap (const AbstractStateMap &absm) | |
AbstractStateMap & | operator= (const AbstractStateMap &absm) |
virtual const Alphabet * | getAlphabet () const |
virtual size_t | getNumberOfModelStates () const |
virtual const std::vector< int > & | getAlphabetStates () const |
virtual int | getAlphabetStateAsInt (size_t index) const |
virtual std::string | getAlphabetStateAsChar (size_t index) const |
virtual std::vector< size_t > | getModelStates (int code) const |
virtual std::vector< size_t > | getModelStates (const std::string &code) const |
virtual StateMap * | clone () const =0 |
Protected Attributes | |
const Alphabet * | alphabet_ |
std::vector< int > | states_ |
A convenience partial implementation of the StateMap interface.
Model states are stored as their corresponding int codes, stored in a vector 'states_'. This vector has to be initialized and filled by the derived class.
Definition at line 115 of file StateMap.h.
|
inline |
Definition at line 123 of file StateMap.h.
|
inline |
Definition at line 128 of file StateMap.h.
|
pure virtualinherited |
|
inlinevirtual |
Implements bpp::StateMap.
Definition at line 141 of file StateMap.h.
References alphabet_.
|
inlinevirtual |
index | The model state. |
Implements bpp::StateMap.
Definition at line 145 of file StateMap.h.
References alphabet_, and states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStateAsChar().
|
inlinevirtual |
index | The model state. |
Implements bpp::StateMap.
Definition at line 144 of file StateMap.h.
References states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStateAsInt().
|
inlinevirtual |
Implements bpp::StateMap.
Definition at line 143 of file StateMap.h.
References states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getAlphabetStates().
|
inlinevirtual |
code | The int code of the alphabet state to check. |
Implements bpp::StateMap.
Definition at line 146 of file StateMap.h.
References states_.
Referenced by bpp::MarkovModulatedSubstitutionModel::getModelStates().
|
inlinevirtual |
code | The character code of the alphabet state to check. |
Implements bpp::StateMap.
Definition at line 149 of file StateMap.h.
|
inlinevirtual |
Implements bpp::StateMap.
Definition at line 142 of file StateMap.h.
References states_.
|
inline |
Definition at line 133 of file StateMap.h.
|
protected |
Definition at line 119 of file StateMap.h.
Referenced by getAlphabet(), getAlphabetStateAsChar(), getModelStates(), and operator=().
|
protected |
Definition at line 120 of file StateMap.h.
Referenced by bpp::CanonicalStateMap::CanonicalStateMap(), getAlphabetStateAsChar(), getAlphabetStateAsInt(), getAlphabetStates(), getModelStates(), getNumberOfModelStates(), bpp::MarkovModulatedStateMap::MarkovModulatedStateMap(), and operator=().