CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
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
17namespace CNORXZ
18{
19 namespace hdf5
20 {
21 /*============+
22 | TypeId |
23 +============*/
24
25 template <typename T>
27 {
28 return 0;
29 }
30
32 {
33 return H5Tcopy( H5T_NATIVE_ULONG );
34 }
35
37 {
38 return H5Tcopy( H5T_NATIVE_INT );
39 }
40
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 {
50 return arrtype;
51 }
52
53 /*===============+
54 | getTypeId |
55 +===============*/
56
57 template <typename T>
59 {
60 return TypeId<T>::get();
61 }
62
63 }
64}
65
66#endif
hid_t getTypeId(T x)
Sptr< Range > rangeCast(const RangePtr r)
static hid_t get()
Declaration of all library types.