OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
6namespace 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} // namespace mslang
21
22#endif
std::string::iterator iterator
Definition MSLang.h:14
virtual ~Union()
Definition Union.h:10
static bool parse_detail(iterator &it, const iterator &end, Function *&fun)
Definition Union.cpp:29
std::vector< Function * > funcs_m
Definition Union.h:8
virtual void print(int indentwidth)
Definition Union.cpp:6
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition Union.cpp:20