bpp-phyl3
3.0.0
|
Completion of a given substitution register to consider all substitutions. The new substitutions are considered in an additional type. More...
#include <Bpp/Phyl/Mapping/SubstitutionRegister.h>
Public Member Functions | |
CompleteSubstitutionRegister (std::shared_ptr< const SubstitutionRegisterInterface > reg) | |
CompleteSubstitutionRegister * | clone () const override |
CompleteSubstitutionRegister (const CompleteSubstitutionRegister &csr) | |
CompleteSubstitutionRegister & | operator= (const CompleteSubstitutionRegister &csr) |
virtual | ~CompleteSubstitutionRegister () |
size_t | getNumberOfSubstitutionTypes () const override |
size_t | getType (size_t fromState, size_t toState) const override |
Get the substitution type far a given pair of model states. More... | |
std::string | getTypeName (size_t type) const override |
Get the name of a given substitution type. More... | |
const StateMapInterface & | stateMap () const override |
std::shared_ptr< const StateMapInterface > | getStateMap () const override |
const Alphabet & | alphabet () const override |
std::shared_ptr< const Alphabet > | getAlphabet () const override |
const std::string & | getName () const override |
Get the name of the register. More... | |
Protected Attributes | |
std::shared_ptr< const StateMapInterface > | stateMap_ |
std::string | name_ |
Private Attributes | |
std::shared_ptr< const SubstitutionRegisterInterface > | preg_ |
bool | isRegComplete_ |
Completion of a given substitution register to consider all substitutions. The new substitutions are considered in an additional type.
Definition at line 191 of file SubstitutionRegister.h.
|
inline |
Definition at line 200 of file SubstitutionRegister.h.
References isRegComplete_.
Referenced by clone().
|
inline |
Definition at line 221 of file SubstitutionRegister.h.
|
inlinevirtual |
Definition at line 235 of file SubstitutionRegister.h.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 133 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 219 of file SubstitutionRegister.h.
References CompleteSubstitutionRegister().
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 135 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlineoverridevirtualinherited |
Get the name of the register.
Implements bpp::SubstitutionRegisterInterface.
Definition at line 137 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::name_.
|
inlineoverridevirtual |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 238 of file SubstitutionRegister.h.
References isRegComplete_, and preg_.
Referenced by getType(), and getTypeName().
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 131 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
|
inlineoverridevirtual |
Get the substitution type far a given pair of model states.
fromState | Initial state (should be a state supported by the specified alphabet). |
toState | Final state (should be a state supported by the specified alphabet). |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 243 of file SubstitutionRegister.h.
References getNumberOfSubstitutionTypes(), and preg_.
|
inlineoverridevirtual |
Get the name of a given substitution type.
This method is only used for user-friendlyness purposes, not computational goal. I can therefore be left unimplemented in some cases.
type | Index of the substitution (should be an size_t contained in the register). |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 255 of file SubstitutionRegister.h.
References getNumberOfSubstitutionTypes(), and preg_.
|
inline |
Definition at line 227 of file SubstitutionRegister.h.
References isRegComplete_, bpp::AbstractSubstitutionRegister::operator=(), and preg_.
|
inlineoverridevirtualinherited |
Implements bpp::SubstitutionRegisterInterface.
Definition at line 129 of file SubstitutionRegister.h.
References bpp::AbstractSubstitutionRegister::stateMap_.
Referenced by bpp::VectorOfSubstitutionRegisters::addRegister(), bpp::ComprehensiveSubstitutionRegister::ComprehensiveSubstitutionRegister(), bpp::GCSynonymousSubstitutionRegister::getType(), bpp::GCPositionSubstitutionRegister::getType(), bpp::TsTvSubstitutionRegister::getType(), bpp::SWSubstitutionRegister::getType(), bpp::DnDsSubstitutionRegister::getType(), bpp::KrKcSubstitutionRegister::getType(), bpp::SelectedSubstitutionRegister::SelectedSubstitutionRegister(), bpp::CategorySubstitutionRegister::setAlphabetCategories(), bpp::CategorySubstitutionRegister::setModelCategories(), bpp::AAInteriorSubstitutionRegister::updateMatrix_(), and bpp::AAExteriorSubstitutionRegister::updateMatrix_().
|
private |
Definition at line 197 of file SubstitutionRegister.h.
Referenced by CompleteSubstitutionRegister(), getNumberOfSubstitutionTypes(), and operator=().
|
protectedinherited |
Definition at line 108 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::getName(), and bpp::AbstractSubstitutionRegister::operator=().
|
private |
Definition at line 195 of file SubstitutionRegister.h.
Referenced by getNumberOfSubstitutionTypes(), getType(), getTypeName(), and operator=().
|
protectedinherited |
Definition at line 107 of file SubstitutionRegister.h.
Referenced by bpp::AbstractSubstitutionRegister::alphabet(), bpp::AbstractSubstitutionRegister::getAlphabet(), bpp::AbstractSubstitutionRegister::getStateMap(), bpp::AbstractSubstitutionRegister::operator=(), and bpp::AbstractSubstitutionRegister::stateMap().