forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructToTuple.h
More file actions
391 lines (366 loc) · 17.4 KB
/
StructToTuple.h
File metadata and controls
391 lines (366 loc) · 17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#ifndef O2_FRAMEWORK_STRUCTTOTUPLE_H_
#define O2_FRAMEWORK_STRUCTTOTUPLE_H_
#include <Framework/Traits.h>
#include <array>
namespace o2::framework
{
struct any_type {
template <class T>
constexpr operator T(); // non explicit
};
template <class T, typename... Args>
decltype(void(T{std::declval<Args>()...}), std::true_type())
test(int);
template <class T, typename... Args>
std::false_type
test(...);
template <class T, typename... Args>
struct is_braces_constructible : decltype(test<T, Args...>(0)) {
};
#define DPL_REPEAT_0(x)
#define DPL_REPEAT_1(x) x
#define DPL_REPEAT_2(x) x, x
#define DPL_REPEAT_3(x) x, x, x
#define DPL_REPEAT_4(x) x, x, x, x
#define DPL_REPEAT_5(x) x, x, x, x, x
#define DPL_REPEAT_6(x) x, x, x, x, x, x
#define DPL_REPEAT_7(x) x, x, x, x, x, x, x
#define DPL_REPEAT_8(x) x, x, x, x, x, x, x, x
#define DPL_REPEAT_9(x) x, x, x, x, x, x, x, x, x
#define DPL_REPEAT_10(x) x, x, x, x, x, x, x, x, x, x
#define DPL_REPEAT(x, d, u) DPL_REPEAT_##d(DPL_REPEAT_10(x)), DPL_REPEAT_##u(x)
#define DPL_ENUM_0(pre, post)
#define DPL_ENUM_1(pre, post) pre##0##post
#define DPL_ENUM_2(pre, post) pre##0##post, pre##1##post
#define DPL_ENUM_3(pre, post) pre##0##post, pre##1##post, pre##2##post
#define DPL_ENUM_4(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post
#define DPL_ENUM_5(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post
#define DPL_ENUM_6(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post, pre##5##post
#define DPL_ENUM_7(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post, pre##5##post, pre##6##post
#define DPL_ENUM_8(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post, pre##5##post, pre##6##post, pre##7##post
#define DPL_ENUM_9(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post, pre##5##post, pre##6##post, pre##7##post, pre##8##post
#define DPL_ENUM_10(pre, post) pre##0##post, pre##1##post, pre##2##post, pre##3##post, pre##4##post, pre##5##post, pre##6##post, pre##7##post, pre##8##post, pre##9##post
#define DPL_ENUM_20(pre, post) DPL_ENUM_10(pre, post), DPL_ENUM_10(pre##1, post)
#define DPL_ENUM_30(pre, post) DPL_ENUM_20(pre, post), DPL_ENUM_10(pre##2, post)
#define DPL_ENUM_40(pre, post) DPL_ENUM_30(pre, post), DPL_ENUM_10(pre##3, post)
#define DPL_ENUM_50(pre, post) DPL_ENUM_40(pre, post), DPL_ENUM_10(pre##4, post)
#define DPL_ENUM_60(pre, post) DPL_ENUM_50(pre, post), DPL_ENUM_10(pre##5, post)
#define DPL_ENUM_70(pre, post) DPL_ENUM_60(pre, post), DPL_ENUM_10(pre##6, post)
#define DPL_ENUM_80(pre, post) DPL_ENUM_70(pre, post), DPL_ENUM_10(pre##7, post)
#define DPL_ENUM_90(pre, post) DPL_ENUM_80(pre, post), DPL_ENUM_10(pre##8, post)
#define DPL_ENUM_100(pre, post) DPL_ENUM_90(pre, post), DPL_ENUM_10(pre##9, post)
#define DPL_ENUM(pre, post, d, u) DPL_ENUM_##d##0(pre, post), DPL_ENUM_##u(pre##d, post)
#define DPL_FENUM_0(f, pre, post)
#define DPL_FENUM_1(f, pre, post) f(pre##0##post)
#define DPL_FENUM_2(f, pre, post) f(pre##0##post), f(pre##1##post)
#define DPL_FENUM_3(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post)
#define DPL_FENUM_4(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post)
#define DPL_FENUM_5(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post)
#define DPL_FENUM_6(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post), f(pre##5##post)
#define DPL_FENUM_7(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post), f(pre##5##post), f(pre##6##post)
#define DPL_FENUM_8(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post), f(pre##5##post), f(pre##6##post), f(pre##7##post)
#define DPL_FENUM_9(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post), f(pre##5##post), f(pre##6##post), f(pre##7##post), f(pre##8##post)
#define DPL_FENUM_10(f, pre, post) f(pre##0##post), f(pre##1##post), f(pre##2##post), f(pre##3##post), f(pre##4##post), f(pre##5##post), f(pre##6##post), f(pre##7##post), f(pre##8##post), f(pre##9##post)
#define DPL_FENUM_20(f, pre, post) DPL_FENUM_10(f, pre, post), DPL_FENUM_10(f, pre##1, post)
#define DPL_FENUM_30(f, pre, post) DPL_FENUM_20(f, pre, post), DPL_FENUM_10(f, pre##2, post)
#define DPL_FENUM_40(f, pre, post) DPL_FENUM_30(f, pre, post), DPL_FENUM_10(f, pre##3, post)
#define DPL_FENUM_50(f, pre, post) DPL_FENUM_40(f, pre, post), DPL_FENUM_10(f, pre##4, post)
#define DPL_FENUM_60(f, pre, post) DPL_FENUM_50(f, pre, post), DPL_FENUM_10(f, pre##5, post)
#define DPL_FENUM_70(f, pre, post) DPL_FENUM_60(f, pre, post), DPL_FENUM_10(f, pre##6, post)
#define DPL_FENUM_80(f, pre, post) DPL_FENUM_70(f, pre, post), DPL_FENUM_10(f, pre##7, post)
#define DPL_FENUM_90(f, pre, post) DPL_FENUM_80(f, pre, post), DPL_FENUM_10(f, pre##8, post)
#define DPL_FENUM_100(f, pre, post) DPL_FENUM_90(f, pre, post), DPL_FENUM_10(f, pre##9, post)
#define DPL_FENUM(f, pre, post, d, u) DPL_FENUM_##d##0(f, pre, post), DPL_FENUM_##u(f, pre##d, post)
#define DPL_10_As DPL_REPEAT_10(A)
#define DPL_20_As DPL_10_As, DPL_10_As
#define DPL_30_As DPL_20_As, DPL_10_As
#define DPL_40_As DPL_30_As, DPL_10_As
#define DPL_50_As DPL_40_As, DPL_10_As
#define DPL_60_As DPL_50_As, DPL_10_As
#define DPL_70_As DPL_60_As, DPL_10_As
#define DPL_80_As DPL_70_As, DPL_10_As
#define DPL_90_As DPL_80_As, DPL_10_As
#define DPL_100_As DPL_90_As, DPL_10_As
#define DPL_0_9(pre, po) pre##0##po, pre##1##po, pre##2##po, pre##3##po, pre##4##po, pre##5##po, pre##6##po, pre##7##po, pre##8##po, pre##9##po
#define BRACE_CONSTRUCTIBLE_ENTRY_LOW(u) \
constexpr(is_braces_constructible<type, DPL_REPEAT_##u(A)>{}) \
{ \
return u; \
}
#define BRACE_CONSTRUCTIBLE_ENTRY(d, u) \
constexpr(is_braces_constructible<type, DPL_REPEAT(A, d, u)>{}) \
{ \
return d##u; \
}
#define BRACE_CONSTRUCTIBLE_ENTRY_TENS(d) \
constexpr(is_braces_constructible<type, DPL_##d##0_As>{}) \
{ \
return d##0; \
}
#if __cplusplus >= 202002L
struct UniversalType {
template <typename T>
operator T()
{
}
};
template <typename T>
consteval auto brace_constructible_size(auto... Members)
{
if constexpr (requires { T{Members...}; } == false)
return sizeof...(Members) - 1;
else
return brace_constructible_size<T>(Members..., UniversalType{});
}
#else
template <typename T>
constexpr long brace_constructible_size()
{
using A = any_type;
using type = std::decay_t<T>;
// clang-format off
if BRACE_CONSTRUCTIBLE_ENTRY (9, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (9, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (9)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (8, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (8)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (7, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (7)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (6, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (6)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (5, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (5)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (4, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (4)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (3, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (3)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (2, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (2)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 9)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 8)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 7)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 6)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 5)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 4)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 3)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 2)
else if BRACE_CONSTRUCTIBLE_ENTRY (1, 1)
else if BRACE_CONSTRUCTIBLE_ENTRY_TENS (1)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (9)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (8)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (7)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (6)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (5)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (4)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (3)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (2)
else if BRACE_CONSTRUCTIBLE_ENTRY_LOW (1)
else
{
return 0;
}
// clang-format on
}
#endif
#define DPL_HOMOGENEOUS_APPLY_ENTRY_LOW(u) \
constexpr(numElements == u) \
{ \
auto&& [DPL_ENUM_##u(p, )] = object; \
return std::array<decltype(l(p0)), u>{DPL_FENUM_##u(l, p, )}; \
}
#define DPL_HOMOGENEOUS_APPLY_ENTRY(d, u) \
constexpr(numElements == d##u) \
{ \
auto&& [DPL_ENUM(p, , d, u)] = object; \
return std::array<decltype(l(p0)), d##u>{DPL_FENUM(l, p, , d, u)}; \
}
#define DPL_HOMOGENEOUS_APPLY_ENTRY_TENS(d) \
constexpr(numElements == d##0) \
{ \
auto&& [DPL_ENUM_##d##0(p, )] = object; \
return std::array<decltype(l(p0)), d##0>{DPL_FENUM_##d##0(l, p, )}; \
}
template <bool B = false, typename L, class T>
auto homogeneous_apply_refs(L l, T&& object)
{
using type = std::decay_t<T>;
constexpr int nesting = B ? 1 : 0;
constexpr unsigned long numElements = brace_constructible_size<T>() - nesting;
// clang-format off
if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (8, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (7, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (6, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (5, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (4, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (3, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (2, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (1, 1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_TENS (1)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (8)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (7)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (6)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (5)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (4)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (3)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (2)
else if DPL_HOMOGENEOUS_APPLY_ENTRY_LOW (1)
else { return false; }
// clang-format on
}
} // namespace o2::framework
#endif // O2_FRAMEWORK_STRUCTTOTUPLE_H_