bpp-phyl3 3.0.0
RewardMapping.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_REWARD_MAPPING_H_
6#define _LEGACY_REWARD_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{
27 virtual public LegacyMappingInterface
28{
29public:
32
33 LegacyRewardMappingInterface* clone() const override = 0;
34
35public:
36 virtual double& operator()(size_t nodeIndex, size_t siteIndex) = 0;
37 virtual const double& operator()(size_t nodeIndex, size_t siteIndex) const = 0;
38};
39
40
47 public virtual LegacyRewardMappingInterface,
49{
50public:
52
54
55 LegacyAbstractRewardMapping* clone() const override = 0;
56
58
60};
61} // end of namespace bpp.
62
63#endif // _LEGACY_REWARD_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 reward mapping interface.
Definition: RewardMapping.h:49
LegacyAbstractRewardMapping * clone() const override=0
LegacyAbstractRewardMapping & operator=(const LegacyAbstractRewardMapping &arm)=default
LegacyAbstractRewardMapping(const LegacyAbstractRewardMapping &arm)=default
LegacyAbstractRewardMapping(const Tree &tree)
Definition: RewardMapping.h:51
General interface for storing mapping data.
Definition: Mapping.h:24
Legacy interface for storing reward mapping data.
Definition: RewardMapping.h:28
virtual const double & operator()(size_t nodeIndex, size_t siteIndex) const =0
virtual double & operator()(size_t nodeIndex, size_t siteIndex)=0
LegacyRewardMappingInterface * clone() const override=0
Interface for phylogenetic tree objects.
Definition: Tree.h:115
Defines the basic types of data flow nodes.