5 #ifndef BPP_PHYL_MAPPING_MAPPING_H
6 #define BPP_PHYL_MAPPING_MAPPING_H
11 #include "../Tree/PhyloTree.h"
Partial implementation of the mapping interface.
int getSitePosition(size_t index) const
std::vector< int > sitesPositions_
AbstractMapping(const AbstractMapping &absm)=default
virtual ~AbstractMapping()
AbstractMapping(size_t nb)
void setSitePosition(size_t index, int position)
Set the position of a given site.
virtual void setNumberOfSites(size_t numberOfSites)
size_t getNumberOfSites() const
AbstractMapping & operator=(const AbstractMapping &absm)=default
General interface for storing mapping data.
virtual size_t getNumberOfBranches() const =0
MappingInterface * clone() const override=0
virtual const PhyloBranch & getBranch(unsigned int branchId) const =0
virtual int getSitePosition(size_t index) const =0
virtual ~MappingInterface()
virtual PhyloBranch & getBranch(unsigned int branchId)=0
virtual void setSitePosition(size_t index, int position)=0
Set the position of a given site.
virtual size_t getNumberOfSites() const =0
Defines the basic types of data flow nodes.