bpp-phyl3
3.0.0
|
A list of models, for building a WordSubstitutionModel. More...
#include <Bpp/Phyl/Model/AbstractWordSubstitutionModel.h>
Public Member Functions | |
ModelList (std::vector< std::unique_ptr< SubstitutionModelInterface >> &models) | |
Create a ModelList from one template substitution model. More... | |
size_t | size () const |
std::shared_ptr< SubstitutionModelInterface > | getModel (size_t i) |
std::shared_ptr< const WordAlphabet > | getWordAlphabet () |
Protected Attributes | |
std::vector< std::shared_ptr< SubstitutionModelInterface > > | models_ |
Position-specific models are stored as shared_ptr to allow several positions to share the same model. The constructors, however, take unique_ptr pointers to ensure that the pointers are not shared outside the model instance. More... | |
std::shared_ptr< WordAlphabet > | wordAlphabet_ |
Private Member Functions | |
ModelList (const ModelList &ml) | |
ModelList & | operator= (const ModelList &ml) |
A list of models, for building a WordSubstitutionModel.
Instance of ModelList contains a vector of pointers toward a substitution model which they do not own. Several methods are provided to build and check Alphabet and StateMaps.
Definition at line 24 of file AbstractWordSubstitutionModel.h.
|
inline |
Create a ModelList from one template substitution model.
models | A vector of pointers toward substitution model objects. |
!! All pointers of the vector will be emptied.
Definition at line 42 of file AbstractWordSubstitutionModel.h.
References models_, and wordAlphabet_.
|
inlineprivate |
Definition at line 55 of file AbstractWordSubstitutionModel.h.
|
inline |
Definition at line 62 of file AbstractWordSubstitutionModel.h.
References models_.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel().
|
inline |
Definition at line 67 of file AbstractWordSubstitutionModel.h.
References wordAlphabet_.
Definition at line 57 of file AbstractWordSubstitutionModel.h.
|
inline |
Definition at line 60 of file AbstractWordSubstitutionModel.h.
References models_.
Referenced by bpp::AbstractWordSubstitutionModel::AbstractWordSubstitutionModel().
|
protected |
Position-specific models are stored as shared_ptr to allow several positions to share the same model. The constructors, however, take unique_ptr pointers to ensure that the pointers are not shared outside the model instance.
Definition at line 30 of file AbstractWordSubstitutionModel.h.
Referenced by getModel(), ModelList(), and size().
|
protected |
Definition at line 31 of file AbstractWordSubstitutionModel.h.
Referenced by getWordAlphabet(), and ModelList().