bpp-phyl3
3.0.0
|
Partial implementation of the mapping interface. More...
#include <Bpp/Phyl/Mapping/Mapping.h>
Public Member Functions | |
AbstractMapping () | |
AbstractMapping (size_t nb) | |
AbstractMapping (const AbstractMapping &absm)=default | |
AbstractMapping & | operator= (const AbstractMapping &absm)=default |
virtual | ~AbstractMapping () |
int | getSitePosition (size_t index) const |
void | setSitePosition (size_t index, int position) |
Set the position of a given site. More... | |
size_t | getNumberOfSites () const |
virtual void | setNumberOfSites (size_t numberOfSites) |
MappingInterface * | clone () const override=0 |
virtual const PhyloBranch & | getBranch (unsigned int branchId) const =0 |
virtual PhyloBranch & | getBranch (unsigned int branchId)=0 |
virtual size_t | getNumberOfBranches () const =0 |
Protected Attributes | |
std::vector< int > | sitesPositions_ |
size_t | nbSites_ |
Partial implementation of the mapping interface.
Here, there is no information about site compression.
|
default |
|
inlinevirtual |
|
overridepure virtualinherited |
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
|
inlinevirtual |
Implements bpp::MappingInterface.
Definition at line 111 of file Mapping.h.
References nbSites_.
Referenced by bpp::RewardMappingTools::computeSumForBranch(), bpp::SubstitutionMappingTools::getCountsForBranchPerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerBranch(), bpp::SubstitutionMappingTools::getCountsPerSitePerBranchPerType(), bpp::SubstitutionMappingTools::getCountsPerSitePerType(), bpp::SubstitutionMappingTools::getTreeForType(), bpp::RewardMappingTools::writeToStream(), and bpp::SubstitutionMappingTools::writeToStream().
|
inlinevirtual |
index | The site index. |
Implements bpp::MappingInterface.
Definition at line 98 of file Mapping.h.
References sitesPositions_.
|
default |
|
inlinevirtual |
Reimplemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
Definition at line 113 of file Mapping.h.
References nbSites_, and sitesPositions_.
Referenced by bpp::ProbabilisticRewardMapping::setNumberOfSites(), bpp::ProbabilisticSubstitutionMapping::setNumberOfSites(), and bpp::ProbabilisticSubstitutionMapping::setNumberOfSitesAndTypes().
|
inlinevirtual |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implements bpp::MappingInterface.
Definition at line 103 of file Mapping.h.
References nbSites_, and sitesPositions_.
Referenced by bpp::RewardMappingTools::readFromStream(), and bpp::SubstitutionMappingTools::readFromStream().
|
protected |
Definition at line 82 of file Mapping.h.
Referenced by getNumberOfSites(), setNumberOfSites(), and setSitePosition().
|
protected |
Definition at line 81 of file Mapping.h.
Referenced by getSitePosition(), setNumberOfSites(), and setSitePosition().