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

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

Public Member Functions

 VarRefSynthAttr ()
 Create the attribute with no refs. More...
 
 VarRefSynthAttr (SgNode *thisNode)
 Create the attribute with thisNode. More...
 
 VarRefSynthAttr (const std::vector< SgNode * > &subtree, SgNode *thisNode)
 Create the attribute with the subtree and thisNode. More...
 
 VarRefSynthAttr (const std::vector< SgNode * > &subtree)
 Create the attribute with the provided refs. More...
 
const std::vector< SgNode * > & getRefs ()
 Get the references for this node and below. More...
 
void setRefs (const std::vector< SgNode * > &newRefs)
 Set the references for this node and below. More...
 

Private Attributes

std::vector< SgNode * > refs
 Stores all of the varRefs from the subtree. More...
 

Detailed Description

Attribute that describes the variables modified by a given expression.

Definition at line 846 of file VariableRenaming.h.

Constructor & Destructor Documentation

VariableRenaming::VarRefSynthAttr::VarRefSynthAttr ( )
inline

Create the attribute with no refs.

Definition at line 856 of file VariableRenaming.h.

VariableRenaming::VarRefSynthAttr::VarRefSynthAttr ( SgNode thisNode)
inline

Create the attribute with thisNode.

Parameters
thisNodeThe node to add to the list of refs.

Definition at line 862 of file VariableRenaming.h.

References refs.

VariableRenaming::VarRefSynthAttr::VarRefSynthAttr ( const std::vector< SgNode * > &  subtree,
SgNode thisNode 
)
inline

Create the attribute with the subtree and thisNode.

Parameters
subtreeThe list of nodes to copy to this attribute.
thisNodeThe node to append to the list of refs.

Definition at line 872 of file VariableRenaming.h.

References refs.

VariableRenaming::VarRefSynthAttr::VarRefSynthAttr ( const std::vector< SgNode * > &  subtree)
inline

Create the attribute with the provided refs.

Parameters
subtreeThe refs to use for this attribute.

Definition at line 882 of file VariableRenaming.h.

References refs.

Member Function Documentation

const std::vector<SgNode*>& VariableRenaming::VarRefSynthAttr::getRefs ( )
inline

Get the references for this node and below.

Returns
A constant reference to the ref list.

Definition at line 891 of file VariableRenaming.h.

References refs.

void VariableRenaming::VarRefSynthAttr::setRefs ( const std::vector< SgNode * > &  newRefs)
inline

Set the references for this node and below.

Parameters
newRefsA constant reference to the refs to copy to this node.

Definition at line 897 of file VariableRenaming.h.

References refs.

Member Data Documentation

std::vector<SgNode*> VariableRenaming::VarRefSynthAttr::refs
private

Stores all of the varRefs from the subtree.

Definition at line 851 of file VariableRenaming.h.

Referenced by getRefs(), setRefs(), and VarRefSynthAttr().


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