OPAL (Object Oriented Parallel Accelerator Library) 2024.2
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#include <memory>
7#include <vector>
8
9namespace mslang {
10 struct Union: public Function {
11 std::vector<Function*> funcs_m;
12
13 virtual ~Union () {
14 for (Function* func: funcs_m) {
15 delete func;
16 }
17 }
18
19 virtual void print(int indentwidth);
20 virtual void apply(std::vector<std::shared_ptr<Base> > &bfuncs);
21 static bool parse_detail(iterator &it, const iterator &end, Function* &fun);
22 };
23}
24
25#endif
PartBunchBase< T, Dim >::ConstIterator end(PartBunchBase< T, Dim > const &bunch)
std::string::iterator iterator
Definition MSLang.h:13
virtual ~Union()
Definition Union.h:13
static bool parse_detail(iterator &it, const iterator &end, Function *&fun)
Definition Union.cpp:35
std::vector< Function * > funcs_m
Definition Union.h:11
virtual void print(int indentwidth)
Definition Union.cpp:10
virtual void apply(std::vector< std::shared_ptr< Base > > &bfuncs)
Definition Union.cpp:26