Sage Modeling and Simulation Library

ITreeNode Methods

The ITreeNode<(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 IEnumerable that traverses the descendant payloads depth first.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from 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 the default hash function.
(Inherited from Object.)
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
Determines whether this node is a child of the specified 'possible parent' node.
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
Sets the parent of this node, but does not then set this node as a child to that parent if childAlreadyAdded is set to true.
Public method Siblings
Gets an enumerable 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.)