Terminal tree node class (Tree genotype). More...
#include <Terminal.h>
Public Member Functions | |
void | execute (void *result, Tree &tree) |
Execute the primitive. | |
void | setValue (void *value) |
Set terminal's value. | |
void | getValue (void *value) |
Get terminal's value. | |
Public Attributes | |
T | value_ |
Terminal tree node class (Tree genotype).
Terminal ia s Primitive that represents a single value (double by default).
Definition at line 15 of file Terminal.h.
void Tree::Primitives::TerminalT< T >::execute | ( | void * | result, | |
Tree & | tree | |||
) | [virtual] |
Execute the primitive.
Function primitives gather arguments and return a value; terminal primitives return current value.
Implements Tree::Primitives::Primitive.
Definition at line 64 of file Terminal.h.
void Tree::Primitives::TerminalT< T >::getValue | ( | void * | value | ) | [virtual] |
Get terminal's value.
pointer | to destination |
Reimplemented from Tree::Primitives::Primitive.
Definition at line 57 of file Terminal.h.
void Tree::Primitives::TerminalT< T >::setValue | ( | void * | value | ) | [virtual] |
Set terminal's value.
value | pointer to new value |
Reimplemented from Tree::Primitives::Primitive.
Definition at line 46 of file Terminal.h.