OpenADFortTk (including Open64 and OpenAnalysis references)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ActiveStandard.hpp
Go to the documentation of this file.
1 
16 #ifndef ActiveStandard_hpp
17 #define ActiveStandard_hpp
18 
19 #include <cassert>
20 #include <iostream>
21 #include <list>
26 
27 namespace OA {
28  namespace Activity {
29 
30 
32  public:
35 
41 
44  //getActiveUnnamedIterator
45 
47  bool isActive(SymHandle sym);
48 
50  bool isActive(StmtHandle stmt);
51 
53  bool isActive(MemRefHandle memref);
54 
57 
60 
63 
64 
65  //*****************************************************************
66  // Construction methods
67  //*****************************************************************
68 
70  void insertLoc(OA_ptr<Location> loc);
71 
73  void insertStmt(StmtHandle stmt);
74 
76  void insertMemRef(MemRefHandle memref);
77 
80 
81  //*****************************************************************
82  // Output
83  //*****************************************************************
84 
87  void dump(std::ostream& os, OA_ptr<IRHandlesIRInterface> ir);
88 
89  private:
90  // data members
94 
97 
98 };
99 
102  public OA::IRHandleSetIterator<OA::SymHandle>
103 {
104 public:
105  ActiveSymIterator(OA::OA_ptr<std::set<OA::SymHandle> > pList)
106  : OA::IRHandleSetIterator<OA::SymHandle>(pList) {}
108 
110  bool isValid() const
115 };
116 
117 
120  public OA::IRHandleSetIterator<OA::MemRefHandle>
121 {
122 public:
123  ActiveMemRefIterator(OA::OA_ptr<std::set<OA::MemRefHandle> > pList)
124  : OA::IRHandleSetIterator<OA::MemRefHandle>(pList) {}
126 
128  bool isValid() const
133 };
134 
135 
137 class ActiveStmtIterator : public virtual OA::IRStmtIterator,
138  public OA::IRHandleSetIterator<OA::StmtHandle>
139 {
140 public:
141  ActiveStmtIterator(OA::OA_ptr<std::set<OA::StmtHandle> > pList)
142  : OA::IRHandleSetIterator<OA::StmtHandle>(pList) {}
144 
146  bool isValid() const
151 };
152 
153 
154 
155  } // end of Activity namespace
156 } // end of OA namespace
157 
158 #endif
159