#include <Bpp/Phyl/Mapping/BranchedModelSet.h>
Definition at line 21 of file BranchedModelSet.h.
◆ BranchedModelSet()
bpp::BranchedModelSet::BranchedModelSet |
( |
| ) |
|
|
inline |
◆ ~BranchedModelSet()
virtual bpp::BranchedModelSet::~BranchedModelSet |
( |
| ) |
|
|
inlinevirtual |
◆ getBranchesWithModel()
virtual std::vector<unsigned int> bpp::BranchedModelSet::getBranchesWithModel |
( |
size_t |
index | ) |
const |
|
pure virtual |
Get a list of branches id for which the given model is associated.
- Parameters
-
index | The index of the model. |
- Returns
- A vector with the ids of the branch associated to this model.
Implemented in bpp::AbstractSinglePhyloSubstitutionMapping.
◆ getModel()
◆ getModelForBranch() [1/2]
virtual std::shared_ptr<const TransitionModelInterface> bpp::BranchedModelSet::getModelForBranch |
( |
unsigned int |
branchId | ) |
const |
|
pure virtual |
Get the model associated to a particular branch id.
- Parameters
-
branchId | The id of the query branch. |
- Returns
- A pointer toward the corresponding model.
- Exceptions
-
Exception | If no model is found for this branch. |
◆ getModelForBranch() [2/2]
◆ getModelNumbers()
virtual std::vector<size_t> bpp::BranchedModelSet::getModelNumbers |
( |
| ) |
const |
|
pure virtual |
◆ getNumberOfModels()
virtual size_t bpp::BranchedModelSet::getNumberOfModels |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: