QMCPACK
h5_space_type< T, RANK > Struct Template Reference

default struct to define a h5 dataspace, any intrinsic type T More...

+ Inheritance diagram for h5_space_type< T, RANK >:
+ Collaboration diagram for h5_space_type< T, RANK >:

Static Public Member Functions

static constexpr int added_rank ()
 new rank added due to T More...
 
static auto get_address (T *a)
 return the address More...
 
static auto get_address (const T *a)
 

Public Attributes

hsize_t dims [RANK > 0 ? RANK :1]
 shape of the dataspace, protected for zero size array, hdf5 support scalar as rank = 0 More...
 

Static Public Attributes

static constexpr hsize_t rank = RANK
 rank of the multidimensional dataspace More...
 

Detailed Description

template<typename T, hsize_t RANK>
struct qmcplusplus::h5_space_type< T, RANK >

default struct to define a h5 dataspace, any intrinsic type T

Template Parameters
Tintrinsic datatype
RANKrank of the multidimensional h5dataspace

Definition at line 44 of file hdf_dataspace.h.

Member Function Documentation

◆ added_rank()

static constexpr int added_rank ( )
inlinestatic

new rank added due to T

Definition at line 51 of file hdf_dataspace.h.

51 { return 0; }

◆ get_address() [1/2]

static auto get_address ( T *  a)
inlinestatic

return the address

Definition at line 53 of file hdf_dataspace.h.

53 { return a; }

◆ get_address() [2/2]

static auto get_address ( const T *  a)
inlinestatic

Definition at line 54 of file hdf_dataspace.h.

54 { return a; }

Member Data Documentation

◆ dims

◆ rank

constexpr hsize_t rank = RANK
static

rank of the multidimensional dataspace

Definition at line 49 of file hdf_dataspace.h.

Referenced by h5data_proxy< hyperslab_proxy< CT, RANK > >::read(), and h5data_proxy< hyperslab_proxy< CT, RANK > >::write().


The documentation for this struct was generated from the following file: