Public Member Functions | Public Attributes

Tree::Primitives::TerminalT< T > Class Template Reference
[TreeGenotypesTree Primitives]

Terminal tree node class (Tree genotype). More...

#include <Terminal.h>

Inheritance diagram for Tree::Primitives::TerminalT< T >:
Tree::Primitives::Primitive

List of all members.

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

value_

Detailed Description

template<class T>
class Tree::Primitives::TerminalT< T >

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.


Member Function Documentation

template<class T >
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.

template<class T >
void Tree::Primitives::TerminalT< T >::getValue ( void *  value  )  [virtual]

Get terminal's value.

Parameters:
pointer to destination

Reimplemented from Tree::Primitives::Primitive.

Definition at line 57 of file Terminal.h.

template<class T >
void Tree::Primitives::TerminalT< T >::setValue ( void *  value  )  [virtual]

Set terminal's value.

Parameters:
value pointer to new value

Reimplemented from Tree::Primitives::Primitive.

Definition at line 46 of file Terminal.h.


The documentation for this class was generated from the following file: