|
| void | execute (void *result, Tree &tree) |
| | Execute the primitive.
|
| virtual bool | initialize (StateP state) |
| | Initialize the primitive (default just sets the StateP pointer).
|
| 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). (ERCs should override and make a new copy of the original object).
|
| virtual PrimitiveP | assignToNode (PrimitiveP) |
| | Assign primitive to node (when building a tree). The default behaviour just returns the same pointer (common primitives). ERCs should override and generate a new object with a new value.
|
| void | getNextArgument (void *result, Tree &tree) |
| | Execute next child node's primitive (execute next subtree).
|
| void | skipNextArgument (Tree &tree) |
| | Skip next child subtree (doesn't execute the subtree).
|
| int | getNumberOfArguments () |
| | Return primitive's number of arguments.
|
| void | setName (std::string name) |
| | Set primitive's name.
|
| std::string | getName () |
| | Get primitive's name.
|
| std::string | getComplementName () |
| | Get complement's name.
|
Definition at line 9 of file Sqrt.h.
◆ Sqrt()
| Tree::Primitives::Sqrt::Sqrt |
( |
void | | ) |
|
|
inline |
◆ ~Sqrt()
| Tree::Primitives::Sqrt::~Sqrt |
( |
void | | ) |
|
|
inline |
◆ execute()
| void Tree::Primitives::Sqrt::execute |
( |
void * | result, |
|
|
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 23 of file Sqrt.h.
The documentation for this class was generated from the following file:
- D:/Projekt/ECF/ECF_master/ECF/tree/Sqrt.h