OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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
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}
21
22#endif
PartBunchBase< T, Dim >::ConstIterator end(PartBunchBase< T, Dim > const &bunch)
std::string::iterator iterator
Definition: MSLang.h:16
virtual ~Union()
Definition: Union.h:10
static bool parse_detail(iterator &it, const iterator &end, Function *&fun)
Definition: Union.cpp:31
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:22