DASH
0.3.0
Global.h
1
#ifndef DASH__VIEW__GLOBAL_H__INCLUDED
2
#define DASH__VIEW__GLOBAL_H__INCLUDED
3
4
#include <dash/view/ViewTraits.h>
5
6
7
namespace
dash
{
8
12
template
<
class
ViewType>
13
constexpr
14
typename
std::enable_if<
15
dash::view_traits<ViewType>::is_view::value
&&
16
dash::view_traits<ViewType>::is_local::value
,
17
const
typename
ViewType::global_type &
18
>::type
19
global
(
const
ViewType & v) {
20
return
v.global();
21
}
22
26
template
<
class
ContainerType>
27
constexpr
28
typename
std::enable_if<
29
!
dash::view_traits<ContainerType>::is_view::value
||
30
!
dash::view_traits<ContainerType>::is_local::value
,
31
ContainerType &
32
>::type
33
global
(ContainerType & c) {
34
return
c;
35
}
36
37
}
// namespace dash
38
39
#endif // DASH__VIEW__GLOBAL_H__INCLUDED
dash
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition:
AllOf.h:8
dash::global
constexpr std::enable_if< dash::view_traits< ViewType >::is_view::value &&dash::view_traits< ViewType >::is_local::value, const typename ViewType::global_type & >::type global(const ViewType &v)
Definition:
Global.h:19
dash::view_traits
View type traits.
Definition:
ViewTraits.h:31
tmp
tmporruphar
dash
include
dash
view
Global.h
Generated by
1.8.13