ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stmtPatternNode Class Reference

#include <cpattern.h>

Inheritance diagram for stmtPatternNode:
Collaboration diagram for stmtPatternNode:

Public Member Functions

 stmtPatternNode (const parserID *var)
 Create a new pattern node. More...
 
void lookup (procedureAnn *procedure, Annotations *annotations)
 Lookup annotation variable. More...
 
virtual void dataflow (FlowVal *v, FlowProblem &fp)
 
virtual Node * clone () const
 
virtual void output_stmt (output_context &ct, Node *par)
 
Accessors

Methods to get and set fields in the class.

string & name ()
 
const string & name () const
 
void name (string nm)
 
annVariablevariable () const
 
void variable (annVariable *variable)
 
AST Traversal

Methods to uniformly traverse the AST.

See the documentation in the Node class.

virtual void visit (Visitor *the_visitor)
 
virtual void walk (Walker &the_walker)
 
virtual Node * change (Changer &the_changer, bool redispatch=false)
 

Private Attributes

string _name
 The name of the pattern variable. More...
 
REF annVariable_variable
 Reference to the annotation variable. More...
 

Detailed Description

Definition at line 86 of file cpattern.h.

Constructor & Destructor Documentation

stmtPatternNode::stmtPatternNode ( const parserID var)

Create a new pattern node.

Referenced by clone().

Member Function Documentation

string& stmtPatternNode::name ( )
inline

Definition at line 111 of file cpattern.h.

References _name.

const string& stmtPatternNode::name ( ) const
inline

Definition at line 112 of file cpattern.h.

References _name.

void stmtPatternNode::name ( string  nm)
inline

Definition at line 113 of file cpattern.h.

References _name.

annVariable* stmtPatternNode::variable ( ) const
inline

Definition at line 115 of file cpattern.h.

References _variable.

void stmtPatternNode::variable ( annVariable variable)
inline

Definition at line 116 of file cpattern.h.

References _variable, and variable().

Referenced by variable().

void stmtPatternNode::lookup ( procedureAnn procedure,
Annotations annotations 
)

Lookup annotation variable.

virtual void stmtPatternNode::visit ( Visitor *  the_visitor)
virtual
virtual void stmtPatternNode::walk ( Walker &  the_walker)
virtual
virtual Node* stmtPatternNode::change ( Changer &  the_changer,
bool  redispatch = false 
)
virtual
virtual void stmtPatternNode::dataflow ( FlowVal *  v,
FlowProblem &  fp 
)
inlinevirtual

Definition at line 138 of file cpattern.h.

virtual Node* stmtPatternNode::clone ( ) const
inlinevirtual

Definition at line 142 of file cpattern.h.

References stmtPatternNode().

virtual void stmtPatternNode::output_stmt ( output_context &  ct,
Node *  par 
)
virtual

Member Data Documentation

string stmtPatternNode::_name
private

The name of the pattern variable.

Definition at line 92 of file cpattern.h.

Referenced by name().

REF annVariable* stmtPatternNode::_variable
private

Reference to the annotation variable.

This is only needed for pattern expansion.

Definition at line 98 of file cpattern.h.

Referenced by variable().


The documentation for this class was generated from the following file: