ECF 1.5
Public Member Functions | List of all members
Sqrt Class Reference
Inheritance diagram for Sqrt:
Tree::Primitives::Primitive Tree::Primitives::Primitive

Public Member Functions

void execute (void *result, Tree::Tree &tree)
 Execute the primitive. More...
 
void execute (void *result, Tree::Tree &tree)
 Execute the primitive. 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...
 

Additional Inherited Members

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

Detailed Description

Definition at line 119 of file main.cpp.

Constructor & Destructor Documentation

◆ Sqrt() [1/2]

Sqrt::Sqrt ( )
inline

Definition at line 122 of file main.cpp.

◆ ~Sqrt() [1/2]

Sqrt::~Sqrt ( )
inline

Definition at line 137 of file main.cpp.

◆ Sqrt() [2/2]

Sqrt::Sqrt ( )
inline

Definition at line 111 of file main_moj.cpp.

◆ ~Sqrt() [2/2]

Sqrt::~Sqrt ( )
inline

Definition at line 126 of file main_moj.cpp.

Member Function Documentation

◆ execute() [1/2]

void Sqrt::execute ( void *  result,
Tree::Tree tree 
)
inlinevirtual

Execute the primitive.

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

Implements Tree::Primitives::Primitive.

Definition at line 127 of file main.cpp.

◆ execute() [2/2]

void Sqrt::execute ( void *  result,
Tree::Tree tree 
)
inlinevirtual

Execute the primitive.

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

Implements Tree::Primitives::Primitive.

Definition at line 116 of file main_moj.cpp.


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