bpp-phyl3  3.0.0
ProbabilisticRewardMapping.cpp
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
6 
7 using namespace bpp;
8 using namespace std;
9 
11 {
12  if (numberOfSites != getNumberOfSites() || (usePatterns_ && numberOfSites != numberOfDistinctSites_))
13  {
15 
16  numberOfDistinctSites_ = numberOfSites;
17  usePatterns_ = false;
18 
19  unique_ptr<mapTree::EdgeIterator> nIT = allEdgesIterator();
20 
21  for ( ; !nIT->end(); nIT->next())
22  {
23  (**nIT)->setNumberOfSites(numberOfSites);
24  }
25  }
26 }
virtual void setNumberOfSites(size_t numberOfSites)
Definition: Mapping.h:113
virtual void setNumberOfSites(size_t numberOfSites) override
Defines the basic types of data flow nodes.