Public Member Functions

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

Pos function primitive (Tree genotype). More...

#include <Pos.h>

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

List of all members.

Public Member Functions

void execute (void *result, Tree &tree)
 Execute the primitive.

Detailed Description

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

Pos function primitive (Tree genotype).

pos(x) = (x > 0) ? x : 0

Definition at line 15 of file Pos.h.


Member Function Documentation

template<class T >
void Tree::Primitives::PosT< 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 40 of file Pos.h.


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