5 #ifndef BPP_PHYL_MAPPING_SUBSTITUTIONMAPPING_H
6 #define BPP_PHYL_MAPPING_SUBSTITUTIONMAPPING_H
45 virtual double&
operator()(
unsigned int branchId,
size_t siteIndex,
size_t type) = 0;
46 virtual const double&
operator()(
unsigned int branchId,
size_t siteIndex,
size_t type)
const = 0;
Partial implementation of the mapping interface.
AbstractMapping & operator=(const AbstractMapping &absm)=default
Partial implementation of the substitution mapping interface.
AbstractSubstitutionMapping(const AbstractSubstitutionMapping &absm)
size_t getNumberOfSubstitutionTypes() const
AbstractSubstitutionMapping()
AbstractSubstitutionMapping & operator=(const AbstractSubstitutionMapping &absm)
AbstractSubstitutionMapping * clone() const =0
virtual ~AbstractSubstitutionMapping()
virtual void setNumberOfSubstitutionTypes(size_t numberOfTypes)
General interface for storing mapping data.
General interface for storing mapping data.
virtual void setNumberOfSubstitutionTypes(size_t numberOfTypes)=0
virtual ~SubstitutionMapping()
virtual size_t getNumberOfSubstitutionTypes() const =0
SubstitutionMapping * clone() const override=0
virtual const double & operator()(unsigned int branchId, size_t siteIndex, size_t type) const =0
virtual double & operator()(unsigned int branchId, size_t siteIndex, size_t type)=0
Defines the basic types of data flow nodes.