18 #ifndef EQFABRIC_LEAFVISITOR_H
19 #define EQFABRIC_LEAFVISITOR_H
21 #include <eq/fabric/types.h>
28 template<
class T >
class LeafVisitor
38 virtual VisitorResult
visit( T* leaf )
39 {
return visit( static_cast< const T* >( leaf )); }
42 virtual VisitorResult
visit(
const T* )
43 {
return TRAVERSE_CONTINUE; }
47 #endif // EQFABRIC_LEAFVISITOR_H
LeafVisitor()
Constructs a new leaf visitor.
virtual ~LeafVisitor()
Destruct the leaf visitor.
virtual VisitorResult visit(const T *)
Visit a leaf node during a const traversal.
virtual VisitorResult visit(T *leaf)
Visit a leaf node.