Sage Modeling and Simulation Library

TreeNode<(Of <(<'T>)>)> Methods

The TreeNode<(Of <(<'T>)>)> type exposes the following members.

Methods


  Name Description
Public method AddChild(T, Boolean)
Public method AddChild(ITreeNode<(Of <<'(T>)>>), Boolean)
Public method DescendantNodesBreadthFirst
Returns an iterator that traverses the descendant nodes breadth first, top down.
Public method DescendantNodesDepthFirst
Returns an iterator that traverses the descendant nodes depth first, top down.
Public method DescendantsBreadthFirst
Returns an IEnumerable that traverses the descendant payloads breadth first.
Public method DescendantsDepthFirst
Returns an iterator that traverses the descendant payloads depth first.
Public method Equals
Determines whether the specified Object is equal to the current Object.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method ForEachChild(Action<(Of <<'(T>)>>))
Public method ForEachChild(Action<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method GetHashCode
Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasChild(ITreeNode<(Of <<'(T>)>>))
Public method HasChild(T)
Public method IsChildOf
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveChild(T)
Public method RemoveChild(ITreeNode<(Of <<'(T>)>>))
Public method SetParent
Protected method SetPayload
Public method Siblings
Gets an enumerator over this node's siblings in the hierarchy.
Public method SortChildren(Comparison<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method SortChildren(IComparer<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)