QMCPACK
h5_space_type< std::array< T, D >, RANK > Struct Template Reference

specialization of h5_space_type for std::array<T,D> for any intrinsic type T More...

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

Public Types

using Base = h5_space_type< T, RANK+1 >
 

Public Member Functions

 h5_space_type ()
 

Static Public Member Functions

static constexpr int added_rank ()
 
static auto get_address (std::array< T, D > *a)
 
static auto get_address (const std::array< T, D > *a)
 
- Static Public Member Functions inherited from h5_space_type< T, RANK+1 >
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)
 

Additional Inherited Members

- Public Attributes inherited from h5_space_type< T, RANK+1 >
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 inherited from h5_space_type< T, RANK+1 >
static constexpr hsize_t rank
 rank of the multidimensional dataspace More...
 

Detailed Description

template<typename T, std::size_t D, hsize_t RANK>
struct qmcplusplus::h5_space_type< std::array< T, D >, RANK >

specialization of h5_space_type for std::array<T,D> for any intrinsic type T

Definition at line 76 of file hdf_dataspace.h.

Member Typedef Documentation

◆ Base

using Base = h5_space_type<T, RANK + 1>

Definition at line 78 of file hdf_dataspace.h.

Constructor & Destructor Documentation

◆ h5_space_type()

h5_space_type ( )
inline

Definition at line 81 of file hdf_dataspace.h.

References h5_space_type< T, RANK >::dims.

81 { dims[RANK] = D; }
hsize_t dims[RANK > 0 ? RANK :1]
shape of the dataspace, protected for zero size array, hdf5 support scalar as rank = 0 ...
Definition: hdf_dataspace.h:47

Member Function Documentation

◆ added_rank()

static constexpr int added_rank ( )
inlinestatic

Definition at line 82 of file hdf_dataspace.h.

82 { return Base::added_rank() + 1; }
static constexpr int added_rank()
new rank added due to T
Definition: hdf_dataspace.h:51

◆ get_address() [1/2]

static auto get_address ( std::array< T, D > *  a)
inlinestatic

Definition at line 83 of file hdf_dataspace.h.

83 { return Base::get_address(a->data()); }
static auto get_address(T *a)
return the address
Definition: hdf_dataspace.h:53

◆ get_address() [2/2]

static auto get_address ( const std::array< T, D > *  a)
inlinestatic

Definition at line 84 of file hdf_dataspace.h.

84 { return Base::get_address(a->data()); }
static auto get_address(T *a)
return the address
Definition: hdf_dataspace.h:53

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