OpenFPM_pdata
4.1.0
Project that contain the implementation of distributed structures
Loading...
Searching...
No Matches
check_no_pointers.hpp
1
/*
2
* check_no_pointers.hpp
3
*
4
* Created on: Jul 7, 2015
5
* Author: i-bird
6
*/
7
8
#ifndef CHECK_NO_POINTERS_HPP_
9
#define CHECK_NO_POINTERS_HPP_
10
11
#include "common.hpp"
12
17
enum
PNP
18
{
19
POINTERS,
20
NO_POINTERS,
21
UNKNOWN
22
};
23
25
template<typename T, bool has_pointer=has_noPointers<T>::type::value >
26
struct
check_no_pointers_impl
27
{
29
static
size_t
value
() {
return
T::noPointers();}
30
};
31
33
template
<
typename
T>
34
struct
check_no_pointers_impl
<T,false>
35
{
37
static
size_t
value
() {
return
PNP::UNKNOWN;};
38
};
39
52
template
<
typename
T>
53
struct
check_no_pointers
54
{
55
static
size_t
value() {
return
check_no_pointers_impl<T>::value
();}
56
};
57
58
59
60
61
#endif
/* CHECK_NO_POINTERS_HPP_ */
check_no_pointers_impl< T, false >::value
static size_t value()
Return PNP::UNKNOWN if the structure T does not specify if it has a pointer.
Definition
check_no_pointers.hpp:37
check_no_pointers_impl
Check if the type T has pointers inside.
Definition
check_no_pointers.hpp:27
check_no_pointers_impl::value
static size_t value()
Return true if the structure T has a pointer.
Definition
check_no_pointers.hpp:29
check_no_pointers
This class check if the type T has pointers inside.
Definition
check_no_pointers.hpp:54
openfpm_data
src
util
check_no_pointers.hpp
Generated by
1.9.8