OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Union.h
Go to the documentation of this file.
1 #ifndef MSLANG_UNION_H
2 #define MSLANG_UNION_H
3 
4 #include "Utilities/MSLang.h"
5 
6 namespace mslang {
7  struct Union: public Function {
8  std::vector<Function*> funcs_m;
9 
10  virtual ~Union () {
11  for (Function* func: funcs_m) {
12  delete func;
13  }
14  }
15 
16  virtual void print(int indentwidth);
17  virtual void apply(std::vector<std::shared_ptr<Base> > &bfuncs);
18  static bool parse_detail(iterator &it, const iterator &end, Function* &fun);
19  };
20 }
21 
22 #endif
virtual ~Union()
Definition: Union.h:10
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition: Union.cpp:22
virtual void print(int indentwidth)
Definition: Union.cpp:6
std::vector< Function * > funcs_m
Definition: Union.h:8
std::string::iterator iterator
Definition: MSLang.h:16
static bool parse_detail(iterator &it, const iterator &end, Function *&fun)
Definition: Union.cpp:31