ROSE  0.11.96.11
Public Member Functions | List of all members
ssa_private::ChildUses Class Reference

Description

Attribute that describes the variables used by a given expression.

Definition at line 14 of file defsAndUsesTraversal.h.

#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...
 
SgVarRefExpgetCurrentVar () const
 

Constructor & Destructor Documentation

◆ ChildUses() [1/2]

ssa_private::ChildUses::ChildUses ( )
inline

Create the attribute with no refs.


Definition at line 26 of file defsAndUsesTraversal.h.

◆ ChildUses() [2/2]

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 40 of file defsAndUsesTraversal.h.

Member Function Documentation

◆ getUses()

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 51 of file defsAndUsesTraversal.h.

◆ setUses()

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 60 of file defsAndUsesTraversal.h.


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