ECF 1.7
Cartesian::Node Class Reference

#include <Node.h>

Public Member Functions

 Node (FunctionP primitive)
void setPrimitive (FunctionP primitive)
 Node (FunctionP primitive)
void setPrimitive (FunctionP primitive)

Public Attributes

FunctionP primitive_
std::vector< uint > arguments_

Detailed Description

A node is an element of a CGP genotype.

Each node points to a Function primitive and has a vector of indexes of argument nodes.

Definition at line 13 of file Node.h.

Constructor & Destructor Documentation

◆ Node() [1/4]

Cartesian::Node::Node ( )
inline

Definition at line 16 of file Node.h.

◆ Node() [2/4]

Cartesian::Node::Node ( FunctionP primitive)
inline

Definition at line 18 of file Node.h.

◆ ~Node() [1/2]

Cartesian::Node::~Node ( )
inline

Definition at line 22 of file Node.h.

◆ Node() [3/4]

Cartesian::Node::Node ( )
inline

Definition at line 16 of file Node.h.

◆ Node() [4/4]

Cartesian::Node::Node ( FunctionP primitive)
inline

Definition at line 18 of file Node.h.

◆ ~Node() [2/2]

Cartesian::Node::~Node ( )
inline

Definition at line 22 of file Node.h.

Member Function Documentation

◆ setPrimitive() [1/2]

void Cartesian::Node::setPrimitive ( FunctionP primitive)
inline

Definition at line 24 of file Node.h.

◆ setPrimitive() [2/2]

void Cartesian::Node::setPrimitive ( FunctionP primitive)
inline

Definition at line 24 of file Node.h.

Member Data Documentation

◆ arguments_

std::vector< uint > Cartesian::Node::arguments_

Definition at line 30 of file Node.h.

◆ primitive_

FunctionP Cartesian::Node::primitive_

Definition at line 29 of file Node.h.


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