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

Attribute that describes the variables used by a given expression. More...

Collaboration diagram for VariableRenaming::ChildUses:

Public Member Functions

 ChildUses ()
 Create the attribute with no refs. More...
 
 ChildUses (SgNode *useNode, SgVarRefExp *var)
 
 ChildUses (const std::vector< SgNode * > &useTree, SgVarRefExp *var=NULL)
 Create the attribute with the def and list of uses. More...
 
std::vector< SgNode * > & getUses ()
 Get the uses for this node and below. More...
 
void setUses (const std::vector< SgNode * > &newUses)
 Set the uses for this node and below. More...
 
SgVarRefExpgetCurrentVar () const
 

Private Attributes

SgVarRefExpcurrentVar
 An assignment to the current expression in the AST would define this variable. More...
 
std::vector< SgNode * > uses
 Stores all the varRefs that are used in the current subTree. More...
 

Detailed Description

Attribute that describes the variables used by a given expression.

Definition at line 931 of file VariableRenaming.h.

Constructor & Destructor Documentation

VariableRenaming::ChildUses::ChildUses ( )
inline

Create the attribute with no refs.

Definition at line 943 of file VariableRenaming.h.

VariableRenaming::ChildUses::ChildUses ( SgNode useNode,
SgVarRefExp var 
)
inline

Definition at line 946 of file VariableRenaming.h.

References currentVar, and uses.

VariableRenaming::ChildUses::ChildUses ( const std::vector< SgNode * > &  useTree,
SgVarRefExp var = NULL 
)
inline

Create the attribute with the def and list of uses.

Parameters
useTreeThe vector of uses to add, or an empty vector.

Definition at line 956 of file VariableRenaming.h.

References currentVar, and uses.

Member Function Documentation

std::vector<SgNode*>& VariableRenaming::ChildUses::getUses ( )
inline

Get the uses for this node and below.

Returns
A constant reference to the use list.

Definition at line 967 of file VariableRenaming.h.

References uses.

void VariableRenaming::ChildUses::setUses ( const std::vector< SgNode * > &  newUses)
inline

Set the uses for this node and below.

Parameters
newUsesA constant reference to the uses to copy to this node.

Definition at line 976 of file VariableRenaming.h.

References uses.

SgVarRefExp* VariableRenaming::ChildUses::getCurrentVar ( ) const
inline

Definition at line 981 of file VariableRenaming.h.

References currentVar.

Member Data Documentation

SgVarRefExp* VariableRenaming::ChildUses::currentVar
private

An assignment to the current expression in the AST would define this variable.

Definition at line 935 of file VariableRenaming.h.

Referenced by ChildUses(), and getCurrentVar().

std::vector<SgNode*> VariableRenaming::ChildUses::uses
private

Stores all the varRefs that are used in the current subTree.

Definition at line 938 of file VariableRenaming.h.

Referenced by ChildUses(), getUses(), and setUses().


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