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

EbnfOrNode Class Reference

#include <ebnf_la_node.hh>

Inheritance diagram for EbnfOrNode:

Inheritance graph
[legend]
Collaboration diagram for EbnfOrNode:

Collaboration graph
[legend]
List of all members.

Public Methods

 EbnfOrNode (EbnfLaNode *pre_, EbnfLaNode *post_, const Position &pos_)
 EbnfOrNode (const EbnfOrNode &o)
virtual EbnfNodeoperator[] (int index)
virtual EbnfNodeclone ()
virtual int getChildCount ()
virtual ~EbnfOrNode ()
virtual void dump (ostream &os) const

Public Attributes

EbnfLaNodepre
EbnfLaNodepost

Detailed Description

Represents an expansion obtained by applying the "|" operator to two other expansions.

Definition at line 215 of file ebnf_la_node.hh.


Constructor & Destructor Documentation

EbnfOrNode::EbnfOrNode ( EbnfLaNode * pre_,
EbnfLaNode * post_,
const Position & pos_ ) [inline]
 

Definition at line 219 of file ebnf_la_node.hh.

Referenced by clone().

EbnfOrNode::EbnfOrNode ( const EbnfOrNode & o ) [inline]
 

Definition at line 225 of file ebnf_la_node.hh.

EbnfOrNode::~EbnfOrNode ( ) [inline, virtual]
 

Definition at line 248 of file ebnf_la_node.hh.


Member Function Documentation

EbnfNode & EbnfOrNode::operator[] ( int index ) [inline, virtual]
 

Returns the index'th child of this node.

Precondition:
0 <= index <= getChildCount()

Reimplemented from EbnfNode.

Definition at line 231 of file ebnf_la_node.hh.

EbnfNode * EbnfOrNode::clone ( ) [inline, virtual]
 

Virtual copy creation.

Reimplemented from EbnfNode.

Definition at line 238 of file ebnf_la_node.hh.

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

Returns the number of children nodes of this node.

Reimplemented from EbnfNode.

Definition at line 243 of file ebnf_la_node.hh.

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

Reimplemented from EbnfNode.

Definition at line 82 of file ebnf_la_node.cc.


Member Data Documentation

EbnfLaNode * EbnfOrNode::pre
 

The left operand of the "|" operator in textual order.

Definition at line 265 of file ebnf_la_node.hh.

EbnfLaNode * EbnfOrNode::post
 

The right operand of the "|" operator in textual order.

Definition at line 270 of file ebnf_la_node.hh.


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