Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ReNodeAlgo Class Reference

#include <re_node_algo.hh>

Inheritance diagram for ReNodeAlgo:

Inheritance graph
List of all members.

Public Methods

virtual bool operator() (ReNode &n)=0

Detailed Description

This is the generic regexp parse tree tree traversal interface. In order to do something useful with a parse tree, implement this class and call ReNode::dfTraverse on the root of the parse tree with an object of the implementing class as argument.

Definition at line 49 of file re_node_algo.hh.

Member Function Documentation

bool ReNodeAlgo::operator() ( ReNode & n ) [pure virtual]

This gets called for each regexp node during the traversal. If for some reason continuing the traversal becomes unnecessary, the operator should return false. If it should continue with the rest of the unvisited nodes, it should return true.

Reimplemented in LeafNumberGen, FollowPosGen, LeafFinder, and AttributeGen.

The documentation for this class was generated from the following file:
Generated at Tue Jul 9 21:08:22 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001