Polaris: AnyExpr Class Reference

AnyExpr Class Reference

Wildcard expression for any expression tree. More...

#include <AnyExpr.h>

Inheritance diagram for AnyExpr:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AnyExpr ()
 class AnyExpr
 AnyExpr (const AnyExpr &ae)
virtual int structures_OK () const
 Return 1 if my structures are in a valid state.
virtual Expressionclone () const
 Return a copy of myself.
virtual void print_debug (ostream &o, Boolean debug) const
 debug indicates whether it should contain extra fields
virtual Boolean _try_for_match (Expression &e, Boolean consider_side_effects)
virtual const ExprSignatureupdate_signature ()
 Update my signature and return it.
virtual int node_compare (const Expression &ex) const

Detailed Description

Wildcard expression for any expression tree.

Polaris Base

See also:
Wildcard/AnyExpr.h

Wildcard/Wildcard.cc

Wildcard/AnyExpr.h

Description

AnyExpr is a wildcard expression which matches any Fortran expression tree, of any type.

For more details, please see Wildcard.

Definition at line 29 of file AnyExpr.h.


Constructor & Destructor Documentation

AnyExpr::AnyExpr  ) 
 

class AnyExpr

nothing else to do

Definition at line 570 of file Wildcard.cc.

References ANY_WC, make_type(), and UNKNOWN_TYPE.

Referenced by clone().

AnyExpr::AnyExpr const AnyExpr ae  ) 
 

nothing else to do

Definition at line 576 of file Wildcard.cc.

References ANY_WC.


Member Function Documentation

int AnyExpr::structures_OK  )  const [virtual]
 

Return 1 if my structures are in a valid state.

Implements Wildcard.

Definition at line 591 of file Wildcard.cc.

References True.

Expression * AnyExpr::clone  )  const [virtual]
 

Return a copy of myself.

Implements Wildcard.

Definition at line 597 of file Wildcard.cc.

References AnyExpr().

virtual void AnyExpr::print_debug ostream &  o,
Boolean  debug
const [virtual]
 

debug indicates whether it should contain extra fields

Implements Wildcard.

virtual Boolean AnyExpr::_try_for_match Expression e,
Boolean  consider_side_effects
[virtual]
 

Implements Wildcard.

const ExprSignature & AnyExpr::update_signature  )  [virtual]
 

Update my signature and return it.

It is assumed that the signatures of my subexpressions are correct. Also call _clear() on all wildcard descendants.

Implements Wildcard.

Definition at line 972 of file Wildcard.cc.

References Wildcard::_wildcard_update_signature().

int AnyExpr::node_compare const Expression ex  )  const [virtual]
 

... Matches any other AnyExpr

Implements Wildcard.

Definition at line 1021 of file Wildcard.cc.

References ANY_WC.


The documentation for this class was generated from the following files:
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:38 2005