bpp-phyl3
3.0.0
|
General interface for storing mapping data. More...
#include <Bpp/Phyl/Legacy/Mapping/Mapping.h>
Public Member Functions | |
LegacyMappingInterface () | |
virtual | ~LegacyMappingInterface () |
LegacyMappingInterface * | clone () const override=0 |
virtual const Tree & | tree () const =0 |
virtual bool | isEmpty () const =0 |
virtual size_t | getNumberOfSites () const =0 |
virtual size_t | getNumberOfBranches () const =0 |
virtual int | getSitePosition (size_t index) const =0 |
virtual std::vector< double > | getBranchLengths () const =0 |
virtual size_t | getNodeIndex (int nodeId) const =0 |
virtual void | setSitePosition (size_t index, int position)=0 |
Set the position of a given site. More... | |
|
inline |
|
inlinevirtual |
|
overridepure virtual |
Implements bpp::Clonable.
Implemented in bpp::LegacyAbstractSubstitutionMapping, bpp::LegacySubstitutionMappingInterface, bpp::LegacyAbstractRewardMapping, bpp::LegacyRewardMappingInterface, bpp::LegacyAbstractMapping, bpp::LegacyProbabilisticSubstitutionMapping, and bpp::LegacyProbabilisticRewardMapping.
|
pure virtual |
Implemented in bpp::LegacyAbstractMapping.
|
pure virtual |
nodeId | An id of the node to look for in the map. |
Implemented in bpp::LegacyAbstractMapping.
|
pure virtual |
Implemented in bpp::LegacyAbstractMapping.
Referenced by bpp::LegacySubstitutionMappingTools::computeNormForSite(), bpp::LegacyRewardMappingTools::computeSumForSite(), bpp::LegacySubstitutionMappingTools::computeSumForSite(), bpp::LegacySubstitutionMappingTools::computeTotalSubstitutionVectorForSitePerBranch(), and bpp::LegacySubstitutionMappingTools::computeTotalSubstitutionVectorForSitePerType().
|
pure virtual |
Implemented in bpp::LegacyAbstractMapping.
Referenced by bpp::LegacyRewardMappingTools::computeSumForBranch(), and bpp::LegacySubstitutionMappingTools::computeSumForBranch().
|
pure virtual |
index | The site index. |
Implemented in bpp::LegacyAbstractMapping.
|
pure virtual |
Implemented in bpp::LegacyAbstractMapping.
|
pure virtual |
Set the position of a given site.
index | The site index. |
position | The position of the site. |
Implemented in bpp::LegacyAbstractMapping.
|
pure virtual |
Implemented in bpp::LegacyAbstractMapping.