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

LeafFinder Class Reference

Inheritance diagram for LeafFinder:

Inheritance graph
Collaboration diagram for LeafFinder:

Collaboration graph
List of all members.

Public Methods

 LeafFinder (DfaSourceRe **leaves_)
virtual bool operator() (ReNode &n)

Public Attributes

DfaSourceRe** leaves

Detailed Description

Stores a pointers to each leaf node in a regexp tree into a given array of pointers. The position in the array where the opinters are sored is given by the leaf nodes' position fields.

Definition at line 148 of file

Constructor & Destructor Documentation

LeafFinder::LeafFinder ( DfaSourceRe ** leaves_ ) [inline]

Definition at line 152 of file

Member Function Documentation

bool LeafFinder::operator() ( ReNode & n ) [inline, 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 from ReNodeAlgo.

Definition at line 155 of file

Member Data Documentation

DfaSourceRe ** LeafFinder::leaves

Definition at line 173 of file

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