Show / Hide Table of Contents

Class TreeVisitor<T>

Base class for visitors over generic trees.

Inheritance
System.Object
TreeVisitor<T>
Implements
ITreeVisitor<T>
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class TreeVisitor<T> : Object, ITreeVisitor<T>
Type Parameters
Name Description
T

Type of the data contained in the tree nodes.

Constructors

TreeVisitor()

Declaration
public TreeVisitor()

Methods

Visit(IReadOnlyList<ITree<T>>)

Visits the specified tree nodes.

Declaration
protected IReadOnlyList<ITree<T>> Visit(IReadOnlyList<ITree<T>> nodes)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyList<ITree<T>> nodes

Tree nodes to visit.

Returns
Type Description
System.Collections.Generic.IReadOnlyList<ITree<T>>

Result of visiting the tree nodes. This collection will be equal to the original collection if none of the tree nodes changed.

Visit(ITree<T>)

Visits the specified tree.

Declaration
public virtual ITree<T> Visit(ITree<T> node)
Parameters
Type Name Description
ITree<T> node

Tree to visit.

Returns
Type Description
ITree<T>

Result of the visit.

Implements

ITreeVisitor<T>
In This Article
Back to top Generated by DocFX