ECF 1.5
Prog3.h
1
7{
8public:
9 // 3 subtrees
10 Prog3()
11 {
12 nArguments_ = 3;
13 name_ = "p3";
14 }
15
16 void execute(void* evalOp, Tree::Tree& tree)
17 {
18 // execute all subtrees
19 getNextArgument(evalOp, tree);
20 getNextArgument(evalOp, tree);
21 getNextArgument(evalOp, tree);
22 }
23
24 ~Prog3()
25 { }
26};
GP function, executes 3 subtrees in sequence.
Definition: Prog3.h:7
void execute(void *evalOp, Tree::Tree &tree)
Execute the primitive.
Definition: Prog3.h:16
Base primitive class (Tree genotype).
Definition: Primitive.h:37
void getNextArgument(void *result, Tree &tree)
Execute next child node's primitive (execute next subtree).
Definition: Primitive.cpp:71
Tree class - implements genotype as a tree.
Definition: Tree_c.h:29