|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.visitor.VisitorUtils
public class VisitorUtils
Utility class for working with visitors.
Constructor Summary | |
---|---|
VisitorUtils()
|
Method Summary | ||
---|---|---|
static
|
visitAllDepthFirst(T start,
IMeshWalker<T,X1> walker,
IVisitor<T,X2> visitor)
Visits all elements of a mesh in depth first order. |
|
static
|
visitAllPreOrder(T root,
ITreeWalker<T,X1> walker,
IVisitor<T,X2> visitor)
Visits all nodes of a tree in pre-order, i.e. a node is visited directly before its children. |
|
static
|
visitLeaves(T root,
ITreeWalker<T,X1> walker,
IVisitor<T,X2> visitor)
Visits all leaves of a tree, i.e. those nodes without children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisitorUtils()
Method Detail |
---|
public static <T,X1 extends java.lang.Exception,X2 extends java.lang.Exception> void visitAllPreOrder(T root, ITreeWalker<T,X1> walker, IVisitor<T,X2> visitor) throws X1 extends java.lang.Exception, X2 extends java.lang.Exception
root
- the root of the tree.walker
- the walker user for traversing the tree.visitor
- the visitor used for visiting the nodes.
X1 extends java.lang.Exception
public static <T,X1 extends java.lang.Exception,X2 extends java.lang.Exception> void visitLeaves(T root, ITreeWalker<T,X1> walker, IVisitor<T,X2> visitor) throws X1 extends java.lang.Exception, X2 extends java.lang.Exception
root
- the root of the tree.walker
- the walker user for traversing the tree.visitor
- the visitor used for visiting the nodes.
X1 extends java.lang.Exception
public static <T,X1 extends java.lang.Exception,X2 extends java.lang.Exception> void visitAllDepthFirst(T start, IMeshWalker<T,X1> walker, IVisitor<T,X2> visitor) throws X1 extends java.lang.Exception, X2 extends java.lang.Exception
start
- the element to start the traversal from.walker
- the walker user for traversing the mesh.visitor
- the visitor used for visiting the elements.
X1 extends java.lang.Exception
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |