|
Name
|
Description
|
|
AddChild(TRSGPNode<T>)
|
Add the specified node as a child of the current node
|
|
Assign(TPersistent)
|
Makes a deep copy (i.e., all children, grandchildren, etc) of the Source to the node
|
|
CalcDepth
|
Calculate the depth of the tree with this node as the parent
|
|
CalcSize
|
Calculate the size of the tree with this node as the parent
|
|
Clear
|
Empties the node of all information (i.e., Instruction equals nil, Value equals default, and children are deleted and freed)
|
|
Clone(TRSGPNode<T>)
|
Creates a copy of the current node and all of its children. This is a deep copy of the entire subtree.
|
|
CreateNode(TRSGPInstruction<T>,TRSGPNode<T>)
|
Represents method CreateNode(TRSGPInstruction<T>,TRSGPNode<T>).
|
|
Depth
|
Returns the depth (maximum number of levels of children) of the subtree with this node as its root. If the node has no children, the depth is 1. If the node has children, its depth is 2. If at least one of its children has children, the depth is 3, etc.
|
|
Execute(TRSGPContext<T>)
|
Executes the current node using the specified Context.
Note that it is up to the Instruction to do the actual execution in its OnExecute event. The instruction is also where the decision to execute children event or not is made.
|
|
ExtractChild(TRSGPNode<T>)
|
Extracts the specified node from the current node's list of child nodes
|
|
GetChild(Integer)
|
Represents method GetChild(Integer).
|
|
GetChildCount
|
Represents method GetChildCount.
|
|
IndexOf(TRSGPNode<T>)
|
Searchs for the Node as a child of the current node. If the node is found, this method returns the index to access the child. Otherwise, it returns -1.
|
|
InsertChild(Integer,TRSGPNode<T>)
|
Inserts the Node as a child of the current node at the specified Index
|
|
IsTerminal
|
Returns true if the node is a terminal (constant, variable, or function with arity of 0)
|
|
LoadFromXML(IXMLDnaType)
|
Loads the node and its children from the XML
|
|
LoadValueFromXML(IXMLDnaType)
|
Loads the Value from the XML
|
|
Modified
|
Represents method Modified.
|
|
SaveToXML(IXMLDnaType)
|
Saves the node and its children to the XML
|
|
SaveValueToXML(IXMLDnaType)
|
Saves the Value to the XML
|
|
SetValue(T)
|
Represents method SetValue(T).
|
|
Size
|
Returns the size (how many children, grandchildren, etc) of the subtree with this node as its root. If the node has no children, the depth is 1.
|
|
ToString
|
Returns a prefix notation version of the node and its children
|
|
ValueToString
|
Returns a string representation of the Value.
|