bpp-phyl3  3.0.0
bpp::RewardMappingInterface Class Referenceabstract

General interface for storing reward mapping data. More...

#include <Bpp/Phyl/Mapping/RewardMapping.h>

+ Inheritance diagram for bpp::RewardMappingInterface:
+ Collaboration diagram for bpp::RewardMappingInterface:

Public Member Functions

 RewardMappingInterface ()
 
virtual ~RewardMappingInterface ()
 
RewardMappingInterfaceclone () const override=0
 
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 PhyloBranchgetBranch (unsigned int branchId) const =0
 
virtual PhyloBranchgetBranch (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...
 

Detailed Description

General interface for storing reward mapping data.

Since only probabilistic reward mapping is implemented for now, the basal interface only contains a few methods. More methods are expected to be added later.

Definition at line 25 of file RewardMapping.h.

Constructor & Destructor Documentation

◆ RewardMappingInterface()

bpp::RewardMappingInterface::RewardMappingInterface ( )
inline

Definition at line 29 of file RewardMapping.h.

◆ ~RewardMappingInterface()

virtual bpp::RewardMappingInterface::~RewardMappingInterface ( )
inlinevirtual

Definition at line 30 of file RewardMapping.h.

Member Function Documentation

◆ clone()

RewardMappingInterface* bpp::RewardMappingInterface::clone ( ) const
overridepure virtual

◆ getBranch() [1/2]

virtual const PhyloBranch& bpp::MappingInterface::getBranch ( unsigned int  branchId) const
pure virtualinherited

◆ getBranch() [2/2]

virtual PhyloBranch& bpp::MappingInterface::getBranch ( unsigned int  branchId)
pure virtualinherited

◆ getNumberOfBranches()

virtual size_t bpp::MappingInterface::getNumberOfBranches ( ) const
pure virtualinherited
Returns
The number of branches mapped.

Implemented in bpp::ProbabilisticSubstitutionMapping, and bpp::ProbabilisticRewardMapping.

◆ getNumberOfSites()

virtual size_t bpp::MappingInterface::getNumberOfSites ( ) const
pure virtualinherited
Returns
The number of sites mapped.

Implemented in bpp::AbstractMapping.

◆ getSitePosition()

virtual int bpp::MappingInterface::getSitePosition ( size_t  index) const
pure virtualinherited
Parameters
indexThe site index.
Returns
The site position corresponding to the index.

Implemented in bpp::AbstractMapping.

◆ operator()() [1/2]

virtual double bpp::RewardMappingInterface::operator() ( uint  branchId,
size_t  siteIndex 
) const
pure virtual

◆ operator()() [2/2]

virtual double& bpp::RewardMappingInterface::operator() ( uint  branchId,
size_t  siteIndex 
)
pure virtual

◆ setSitePosition()

virtual void bpp::MappingInterface::setSitePosition ( size_t  index,
int  position 
)
pure virtualinherited

Set the position of a given site.

Warning
No index checking is performed, use with care!
Parameters
indexThe site index.
positionThe position of the site.

Implemented in bpp::AbstractMapping.


The documentation for this class was generated from the following file: