Class VariableRenaming::ChildUses#

Nested Relationships#

This class is a nested type of Class VariableRenaming.

Class Documentation#

class ChildUses#

Attribute that describes the variables used by a given expression.

Public Functions

inline ChildUses()#

Create the attribute with no refs.

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

Create the attribute with the def and list of uses.

Parameters:

useTree – The vector of uses to add, or an empty vector.

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

Get the uses for this node and below.

Returns:

A constant reference to the use list.

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

Set the uses for this node and below.

Parameters:

newUses – A constant reference to the uses to copy to this node.

inline SgVarRefExp *getCurrentVar() const#