ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EDefUse.h
Go to the documentation of this file.
1 #ifndef EDEFUSE_CLASS
2 #define EDEFUSE_CLASS
3 // #include "rose.h"
4 #include "DFAnalysis.h"
5 #include "DefUseAnalysis.h"
6 #include <vector>
7 class EDefUse
8 {
9 public:
10  EDefUse(SgProject * proj);
11 protected:
13 public:
14  int run(bool debug);
15  // get the vector of defining and usage nodes for a specific node and a initializedName
16  std::vector < SgNode* > getDefFor(SgNode* node, SgInitializedName* initName);
17  std::vector < SgNode* > getUseFor(SgNode* node, SgInitializedName* initName);
18  std::vector < std::pair < SgInitializedName* , SgNode* > > getDefMultiMapFor(SgNode* node);
19  // return whether a node is a global node
21  //
22 };
23 #endif