DASH  0.3.0
SetUnion.h
1 #ifndef DASH__VIEW__UNION_H__INCLUDED
2 #define DASH__VIEW__UNION_H__INCLUDED
3 
4 #include <dash/Types.h>
5 #include <dash/Dimensional.h>
6 #include <dash/Cartesian.h>
7 
8 #include <vector>
9 
10 
11 namespace dash {
12 
13 
14 template <class ComponentViewType>
16 {
17 
18 public:
19  CompositeView(std::initializer_list<ComponentViewType> views)
20  : _views(views)
21  { }
22 
23  CompositeView(const std::vector<ComponentViewType> & views)
24  : _views(views)
25  { }
26 
27 private:
28  std::vector<ComponentViewType> _views;
29 };
30 
31 
32 template <class ComponentViewType>
34 set_union(
35  const std::vector<ComponentViewType> & views) {
37 }
38 
39 template <class ComponentViewType>
41 set_union(
42  std::initializer_list<ComponentViewType> views) {
44 }
45 
46 
47 } // namespace dash
48 
49 #endif // DASH__VIEW__UNION_H__INCLUDED
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition: AllOf.h:8