CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
src
opt
hdf5
include
h5_type_id.cc.h
Go to the documentation of this file.
1
// -*- C++ -*-
12
#ifndef __cxz_h5_type_id_cc_h__
13
#define __cxz_h5_type_id_cc_h__
14
15
#include "
base/types.h
"
16
17
namespace
CNORXZ
18
{
19
namespace
hdf5
20
{
21
/*============+
22
| TypeId |
23
+============*/
24
25
template
<
typename
T>
26
inline
hid_t
TypeId<T>::get
()
27
{
28
return
0;
29
}
30
31
inline
hid_t
TypeId<SizeT>::get
()
32
{
33
return
H5Tcopy
(
H5T_NATIVE_ULONG
);
34
}
35
36
inline
hid_t
TypeId<Int>::get
()
37
{
38
return
H5Tcopy
(
H5T_NATIVE_INT
);
39
}
40
41
inline
hid_t
TypeId<Double>::get
()
42
{
43
return
H5Tcopy
(
H5T_NATIVE_DOUBLE
);
44
}
45
46
template
<
typename
T, SizeT N>
47
inline
hid_t
TypeId<Arr<T,N>
>::get()
48
{
49
static
hid_t
arrtype
=
H5Tarray_create2
(
TypeId<T>::get
(), 1, N);
50
return
arrtype
;
51
}
52
53
/*===============+
54
| getTypeId |
55
+===============*/
56
57
template
<
typename
T>
58
hid_t
getTypeId
(
T
x)
59
{
60
return
TypeId<T>::get
();
61
}
62
63
}
64
}
65
66
#endif
CNORXZ::hdf5::getTypeId
hid_t getTypeId(T x)
Definition
h5_type_id.cc.h:58
CNORXZ
Definition
aindex.cc.h:18
CNORXZ::rangeCast
Sptr< Range > rangeCast(const RangePtr r)
Definition
range_base.cc.h:53
CNORXZ::hdf5::TypeId
Definition
h5_type_id.h:28
CNORXZ::hdf5::TypeId::get
static hid_t get()
Definition
h5_type_id.cc.h:26
types.h
Declaration of all library types.
Generated by
1.10.0