Public Member Functions

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

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

#include <Neg.h>

Inheritance diagram for Tree::Primitives::NegT< 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::NegT< T >

Neg function primitive (Tree genotype).

neg(x) = (x < 0) ? x : 0

Definition at line 15 of file Neg.h.


Member Function Documentation

template<class T >
void Tree::Primitives::NegT< 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 Neg.h.


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