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_ |
| unsigned int | depth_ |
| PrimitiveP | primitive_ |
Node base class (Tree genotype).
A node is an element of a Tree. Each node points to a Primitive object.
Definition at line 18 of file Node.h.
1.7.1