ECF 1.5
Public Member Functions | Public Attributes | List of all members
IATerminal Class Reference
Inheritance diagram for IATerminal:
Tree::Primitives::TerminalT< T > IAPrimitive Tree::Primitives::Primitive

Public Member Functions

virtual void execute (void *result, Tree::Tree &tree)
 Execute the primitive. More...
 
virtual IABounds calculateBounds (Tree::IATree &tree)
 
- Public Member Functions inherited from Tree::Primitives::TerminalT< T >
void execute (void *result, Tree &tree)
 Execute the primitive. More...
 
void setValue (void *value)
 Set terminal's value. More...
 
void getValue (void *value)
 Get terminal's value. More...
 
- Public Member Functions inherited from Tree::Primitives::Primitive
virtual void execute (void *result, Tree &tree)=0
 Execute the primitive. More...
 
virtual bool initialize (StateP state)
 Initialize the primitive (default just sets the StateP pointer). More...
 
virtual void setValue (void *value)
 
virtual void getValue (void *value)
 
virtual PrimitiveP copyWithNode (PrimitiveP)
 Copy primitive (when copying a node, e.g. in crossover). The default behaviour just returns the same pointer (common primitives). (ERC's should override and make a new copy of the original object). More...
 
virtual PrimitiveP assignToNode (PrimitiveP)
 Assign primitive to node (when building a tree). The default behaviour just returns the same pointer (common primitives). ERC's should override and generate a new object with a new value. More...
 
void getNextArgument (void *result, Tree &tree)
 Execute next child node's primitive (execute next subtree). More...
 
void skipNextArgument (Tree &tree)
 Skip next child subtree (doesn't execute the subtree). More...
 
int getNumberOfArguments ()
 Return primitive's number of arguments. More...
 
void setName (std::string name)
 Set primitive's name. More...
 
std::string getName ()
 Get primitive's name. More...
 
std::string getComplementName ()
 Get complement's name. More...
 
- Public Member Functions inherited from IAPrimitive
virtual IABounds calculateBounds (Tree::IATree &tree)=0
 
virtual bool calculateBoundsIfRootNode (void *result, Tree::Tree &tree)
 

Public Attributes

double lowerBound
 
double upperBound
 
- Public Attributes inherited from Tree::Primitives::TerminalT< T >
value_
 
- Public Attributes inherited from Tree::Primitives::Primitive
StateP state_
 

Additional Inherited Members

- Protected Attributes inherited from Tree::Primitives::Primitive
std::string name_
 
int nArguments_
 
std::string complementName_
 

Detailed Description

Definition at line 7 of file IATerminal.h.

Member Function Documentation

◆ calculateBounds()

IABounds IATerminal::calculateBounds ( Tree::IATree tree)
virtual

Implements IAPrimitive.

Definition at line 16 of file IATerminal.cpp.

◆ execute()

void IATerminal::execute ( void *  result,
Tree::Tree tree 
)
virtual

Execute the primitive.

Function primitives gather arguments and return a value; terminal primitives return current value.

Reimplemented from Tree::Primitives::TerminalT< T >.

Definition at line 7 of file IATerminal.cpp.

Member Data Documentation

◆ lowerBound

double IATerminal::lowerBound

Definition at line 12 of file IATerminal.h.

◆ upperBound

double IATerminal::upperBound

Definition at line 13 of file IATerminal.h.


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