bpp-phyl3
3.0.0
|
Partial implementation of the substitution mapping interface. More...
#include <Bpp/Phyl/Mapping/RewardMapping.h>
Public Member Functions | |
AbstractRewardMapping () | |
AbstractRewardMapping (const AbstractRewardMapping &absm) | |
AbstractRewardMapping * | clone () const override=0 |
AbstractRewardMapping & | operator= (const AbstractRewardMapping &absm) |
virtual | ~AbstractRewardMapping () |
virtual double & | operator() (uint branchId, size_t siteIndex)=0 |
virtual double | operator() (uint branchId, size_t siteIndex) const =0 |
virtual size_t | getNumberOfSites () const =0 |
virtual const PhyloBranch & | getBranch (unsigned int branchId) const =0 |
virtual PhyloBranch & | getBranch (unsigned int branchId)=0 |
virtual size_t | getNumberOfBranches () const =0 |
virtual int | getSitePosition (size_t index) const =0 |
virtual void | setSitePosition (size_t index, int position)=0 |
Set the position of a given site. More... | |
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) |
Protected Attributes | |
std::vector< int > | sitesPositions_ |
size_t | nbSites_ |
Partial implementation of the substitution mapping interface.
This implementation copies the input tree in a TreeTemplate<Node> object.
Definition at line 46 of file RewardMapping.h.
|
inline |
Definition at line 51 of file RewardMapping.h.
|
inline |
Definition at line 53 of file RewardMapping.h.
|
inlinevirtual |
Definition at line 64 of file RewardMapping.h.
|
overridepure virtual |
Implements bpp::RewardMappingInterface.
Implemented in bpp::ProbabilisticRewardMapping.
|
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.
|
inlinevirtualinherited |
Implements bpp::MappingInterface.
Definition at line 111 of file Mapping.h.
References bpp::AbstractMapping::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().
|
pure virtualinherited |
Implemented in bpp::AbstractMapping.
|
inlinevirtualinherited |
index | The site index. |
Implements bpp::MappingInterface.
Definition at line 98 of file Mapping.h.
References bpp::AbstractMapping::sitesPositions_.
|
pure virtualinherited |
index | The site index. |
Implemented in bpp::AbstractMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticRewardMapping.
|
pure virtualinherited |
Implemented in bpp::ProbabilisticRewardMapping.
|
inline |
Definition at line 58 of file RewardMapping.h.
References bpp::AbstractMapping::operator=().
|
inlinevirtualinherited |
Reimplemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.
Definition at line 113 of file Mapping.h.
References bpp::AbstractMapping::nbSites_, and bpp::AbstractMapping::sitesPositions_.
Referenced by bpp::ProbabilisticRewardMapping::setNumberOfSites(), bpp::ProbabilisticSubstitutionMapping::setNumberOfSites(), and bpp::ProbabilisticSubstitutionMapping::setNumberOfSitesAndTypes().
|
inlinevirtualinherited |
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 bpp::AbstractMapping::nbSites_, and bpp::AbstractMapping::sitesPositions_.
Referenced by bpp::RewardMappingTools::readFromStream(), and bpp::SubstitutionMappingTools::readFromStream().
|
pure virtualinherited |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implemented in bpp::AbstractMapping.
|
protectedinherited |
Definition at line 82 of file Mapping.h.
Referenced by bpp::AbstractMapping::getNumberOfSites(), bpp::AbstractMapping::setNumberOfSites(), and bpp::AbstractMapping::setSitePosition().
|
protectedinherited |
Definition at line 81 of file Mapping.h.
Referenced by bpp::AbstractMapping::getSitePosition(), bpp::AbstractMapping::setNumberOfSites(), and bpp::AbstractMapping::setSitePosition().