Node base class (Tree genotype). More...
#include <Node.h>
Public Member Functions | |
| Node (PrimitiveP primitive) | |
| Create a copy of an existing Node with its Primitive pointer. The associated primitive (pointer) is copied. | |
| Node (NodeP node) | |
| Create a copy of an existing Node. The associated primitive (pointer) is copied. | |
| void | setPrimitive (PrimitiveP primitive) |
| Set the primitive this node points to (when creating a new tree node). In case of an ephemereal random constant primitive, new primitive object is created. | |
Public Attributes | |
| unsigned int | size_ |
| size of the subtree of this node (including the node) | |
| unsigned int | depth_ |
| depth of this node | |
| PrimitiveP | primitive_ |
| pointer to the Primitive belonging to this node | |
Node base class (Tree genotype).
A node is an element of a Tree. Each node points to a Primitive object.
Definition at line 19 of file Node.h.
1.7.1