OpenFPM_pdata
4.1.0
Project that contain the implementation of distributed structures
Loading...
Searching...
No Matches
is_csv_writable.hpp
1
/*
2
* is_csv_writable.hpp
3
*
4
* Created on: Jul 18, 2016
5
* Author: i-bird
6
*/
7
8
#ifndef OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_
9
#define OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_
10
11
13
template
<
typename
T>
14
struct
is_csv_writable
15
{
17
enum
18
{
19
value =
false
20
};
21
};
22
24
template
<>
25
struct
is_csv_writable
<float>
26
{
28
enum
29
{
30
value =
true
31
};
32
};
33
35
template
<>
36
struct
is_csv_writable
<double>
37
{
39
enum
40
{
41
value =
true
42
};
43
};
44
46
template
<>
47
struct
is_csv_writable
<char>
48
{
50
enum
51
{
52
value =
true
53
};
54
};
55
57
template
<>
58
struct
is_csv_writable
<unsigned char>
59
{
61
enum
62
{
63
value =
true
64
};
65
};
66
68
template
<>
69
struct
is_csv_writable
<short>
70
{
72
enum
73
{
74
value =
true
75
};
76
};
77
79
template
<>
80
struct
is_csv_writable
<unsigned short>
81
{
83
enum
84
{
85
value =
true
86
};
87
};
88
90
template
<>
91
struct
is_csv_writable
<int>
92
{
94
enum
95
{
96
value =
true
97
};
98
};
99
101
template
<>
102
struct
is_csv_writable
<unsigned int>
103
{
105
enum
106
{
107
value =
true
108
};
109
};
110
112
template
<>
113
struct
is_csv_writable
<long int>
114
{
116
enum
117
{
118
value =
true
119
};
120
};
121
123
template
<>
124
struct
is_csv_writable
<unsigned long int>
125
{
127
enum
128
{
129
value =
true
130
};
131
};
132
134
template
<>
135
struct
is_csv_writable
<bool>
136
{
138
enum
139
{
140
value =
true
141
};
142
};
143
145
template
<
typename
T,
unsigned
int
N1>
146
struct
is_csv_writable
<T[N1]>
147
{
149
enum
150
{
151
value =
true
152
};
153
};
154
156
template
<
typename
T,
unsigned
int
N1,
unsigned
int
N2>
157
struct
is_csv_writable
<T[N1][N2]>
158
{
160
enum
161
{
162
value =
true
163
};
164
};
165
167
template
<
typename
T,
unsigned
int
N1,
unsigned
int
N2,
unsigned
int
N3>
168
struct
is_csv_writable
<T[N1][N2][N3]>
169
{
171
enum
172
{
173
value =
true
174
};
175
};
176
177
#endif
/* OPENFPM_IO_SRC_CSVWRITER_IS_CSV_WRITABLE_HPP_ */
is_csv_writable
Indicate if the property T is writable in CSV.
Definition
is_csv_writable.hpp:15
openfpm_io
src
CSVWriter
is_csv_writable.hpp
Generated by
1.9.8