ECF 1.5
IATerminal.cpp
1#include "GPSymbRegEvalOp.h"
2
3#include "IATree.h"
4#include "IATerminal.h"
5#include <cmath>
6
7void IATerminal::execute(void* result, Tree::Tree& tree)
8{
9 if (!calculateBoundsIfRootNode(result, tree)) {
10 return;
11 }
12
14}
15
16IABounds IATerminal::calculateBounds(Tree::IATree& tree) {
17 IABounds retVal;
18 retVal.isWithinBounds = true;
19 retVal.isLowerBoundInclusive = true;
20 retVal.lowerBound = lowerBound;
21 retVal.isUpperBoundInclusive = true;
22 retVal.upperBound = upperBound;
23 return retVal;
24}
virtual void execute(void *result, Tree::Tree &tree)
Execute the primitive.
Definition: IATerminal.cpp:7
void execute(void *result, Tree &tree)
Execute the primitive.
Definition: Terminal.h:64
Tree class - implements genotype as a tree.
Definition: Tree_c.h:29