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

ReOrNode Class Reference

#include <dfa_source_re.hh>

Inheritance diagram for ReOrNode:

Inheritance graph
Collaboration diagram for ReOrNode:

Collaboration graph
List of all members.

Public Methods

 ReOrNode (DfaSourceRe *pre_, DfaSourceRe *post_, const Position &pos_)
 ~ReOrNode ()
virtual ReNodeclone ()
virtual int getChildCount ()
virtual ReNodeoperator[] (int index)
virtual void dump (ostream &os) const

Public Attributes


Detailed Description

ReOrNode represents a regular expression that matches either one of two subexpressions, say r1 and r2. The trees for these two are rooted in the pre and post fields.

Definition at line 181 of file dfa_source_re.hh.

Constructor & Destructor Documentation

ReOrNode::ReOrNode ( DfaSourceRe * pre_,
DfaSourceRe * post_,
const Position & pos_ ) [inline]

Definition at line 185 of file dfa_source_re.hh.

Referenced by clone().

ReOrNode::~ReOrNode ( ) [inline]

Definition at line 190 of file dfa_source_re.hh.

Member Function Documentation

ReNode * ReOrNode::clone ( ) [inline, virtual]

Creates a copy of the regexp parse tree rooted in this node.

Reimplemented from ReNode.

Definition at line 196 of file dfa_source_re.hh.

int ReOrNode::getChildCount ( ) [inline, virtual]

Returns the number of child nodes of this node.

Reimplemented from ReNode.

Definition at line 202 of file dfa_source_re.hh.

ReNode & ReOrNode::operator[] ( int index ) [inline, virtual]

Returns the index'th child of this node.

0 <= index <= getChildCount()

Reimplemented from ReNode.

Definition at line 207 of file dfa_source_re.hh.

void ReOrNode::dump ( ostream & os ) const [virtual]

Reimplemented from DfaSourceRe.

Definition at line 77 of file

Member Data Documentation

DfaSourceRe * ReOrNode::pre

Definition at line 220 of file dfa_source_re.hh.

DfaSourceRe * ReOrNode::post

Definition at line 220 of file dfa_source_re.hh.

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