If the error is smaller, execute the first subtree, else the second one. More...
#include <IfBetter.h>
Public Member Functions | |
void | execute (void *result, Tree::Tree &tree) |
Execute the primitive. |
If the error is smaller, execute the first subtree, else the second one.
Definition at line 7 of file IfBetter.h.
void IfBetter::execute | ( | void * | result, | |
Tree::Tree & | tree | |||
) | [inline, virtual] |
Execute the primitive.
Function primitives gather arguments and return a value; terminal primitives return current value.
Implements Tree::Primitives::Primitive.
Definition at line 16 of file IfBetter.h.