CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
h5_type_id.h
Go to the documentation of this file.
1// -*- C++ -*-
12#ifndef __cxz_h5_type_id_h__
13#define __cxz_h5_type_id_h__
14
15#include "base/types.h"
16
17namespace CNORXZ
18{
19 namespace hdf5
20 {
26 template <typename T>
27 struct TypeId
28 {
30 static inline hid_t get();
31 };
32
34 template <>
35 struct TypeId<SizeT>
36 {
38 static inline hid_t get();
39 };
40
42 template <>
43 struct TypeId<Int>
44 {
46 static inline hid_t get();
47 };
48
50 template <>
51 struct TypeId<Double>
52 {
54 static inline hid_t get();
55 };
56
61 template <typename T, SizeT N>
62 struct TypeId<Arr<T,N>>
63 {
65 static inline hid_t get();
66 };
67
72 template <typename T>
73 hid_t getTypeId(T x);
74 }
75}
76
77#endif
hid_t getTypeId(T x)
double Double
Definition types.h:39
uint64_t SizeT
Definition types.h:38
int32_t Int
Definition types.h:36
Sptr< Range > rangeCast(const RangePtr r)
std::array< T, N > Arr
Definition types.h:45
static hid_t get()
Declaration of all library types.