ROSE
0.9.6a
|
Attribute that describes the variables used by a given expression. More...
#include <defsAndUsesTraversal.h>
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... | |
SgVarRefExp * | getCurrentVar () const |
Private Attributes | |
SgVarRefExp * | currentVar |
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... | |
Attribute that describes the variables used by a given expression.
Definition at line 9 of file defsAndUsesTraversal.h.
|
inline |
Create the attribute with no refs.
Definition at line 21 of file defsAndUsesTraversal.h.
|
inline |
Definition at line 25 of file defsAndUsesTraversal.h.
References currentVar, and uses.
|
inline |
Create the attribute with the def and list of uses.
useTree | The vector of uses to add, or an empty vector. |
Definition at line 35 of file defsAndUsesTraversal.h.
References currentVar, and uses.
|
inline |
Get the uses for this node and below.
Definition at line 46 of file defsAndUsesTraversal.h.
References uses.
|
inline |
Set the uses for this node and below.
newUses | A constant reference to the uses to copy to this node. |
Definition at line 55 of file defsAndUsesTraversal.h.
References uses.
|
inline |
Definition at line 60 of file defsAndUsesTraversal.h.
References 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().
|
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().