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

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

#include <defsAndUsesTraversal.h>

Collaboration diagram for ssa_private::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 9 of file defsAndUsesTraversal.h.

Constructor & Destructor Documentation

ssa_private::ChildUses::ChildUses ( )
inline

Create the attribute with no refs.

Definition at line 21 of file defsAndUsesTraversal.h.

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

Definition at line 25 of file defsAndUsesTraversal.h.

References currentVar, and uses.

ssa_private::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 35 of file defsAndUsesTraversal.h.

References currentVar, and uses.

Member Function Documentation

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

Get the uses for this node and below.

Returns
A constant reference to the use list.

Definition at line 46 of file defsAndUsesTraversal.h.

References uses.

void ssa_private::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 55 of file defsAndUsesTraversal.h.

References uses.

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

Definition at line 60 of file defsAndUsesTraversal.h.

References currentVar.

Member Data Documentation

SgVarRefExp* ssa_private::ChildUses::currentVar
private

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

Definition at line 13 of file defsAndUsesTraversal.h.

Referenced by ChildUses(), and getCurrentVar().

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

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

Definition at line 16 of file defsAndUsesTraversal.h.

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


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