bpp-phyl3 3.0.0
SubstitutionMapping.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef _LEGACY_SUBSTITUTION_MAPPING_H_
6#define _LEGACY_SUBSTITUTION_MAPPING_H_
7
8#include "Mapping.h"
9
10#include <Bpp/Clonable.h>
11
12// From the STL:
13#include <vector>
14#include <memory>
15
16namespace bpp
17{
30 public virtual LegacyMappingInterface
31{
32public:
35
37
38public:
42 virtual size_t getNumberOfSubstitutionTypes() const = 0;
43
44 virtual double& operator()(size_t nodeIndex, size_t siteIndex, size_t type) = 0;
45 virtual const double& operator()(size_t nodeIndex, size_t siteIndex, size_t type) const = 0;
46};
47
48
57{
58public:
60
62
64
66
68};
69} // end of namespace bpp.
70
71#endif // _LEGACY_SUBSTITUTION_MAPPING_H_
Partial implementation of the mapping interface.
Definition: Mapping.h:87
const TreeTemplate< Node > & tree() const override
Definition: Mapping.h:132
Partial implementation of the substitution mapping interface.
LegacyAbstractSubstitutionMapping(const LegacyAbstractSubstitutionMapping &absm)=default
LegacyAbstractSubstitutionMapping * clone() const override=0
LegacyAbstractSubstitutionMapping & operator=(const LegacyAbstractSubstitutionMapping &absm)=default
General interface for storing mapping data.
Definition: Mapping.h:24
Legacy interface for storing mapping data.
virtual const double & operator()(size_t nodeIndex, size_t siteIndex, size_t type) const =0
LegacySubstitutionMappingInterface * clone() const override=0
virtual size_t getNumberOfSubstitutionTypes() const =0
virtual double & operator()(size_t nodeIndex, size_t siteIndex, size_t type)=0
Interface for phylogenetic tree objects.
Definition: Tree.h:115
Defines the basic types of data flow nodes.