ITreeAlgorithm

public interface ITreeAlgorithm<T>

Represents an algorithm that can be applied to a tree of objects T.

T : The type of object to apply method interface to.

Methods

MethodDescription
alg(T el, int level)Processes a node of a tree.
postAlg(T el, int level)Called after processing of a node of a tree.
preAlg(T el, int level)Called before processing of a node of a tree.

alg(T el, int level)

public abstract void alg(T el, int level)

Processes a node of a tree.

Parameters:

ParameterTypeDescription
elTNode to process.
levelintTree node level.

postAlg(T el, int level)

public abstract void postAlg(T el, int level)

Called after processing of a node of a tree.

Parameters:

ParameterTypeDescription
elTNode to process.
levelintTree node level.

preAlg(T el, int level)

public abstract void preAlg(T el, int level)

Called before processing of a node of a tree.

Parameters:

ParameterTypeDescription
elTNode to process.
levelintTree node level.