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

specialization of h5_space_type for std::complex<T> More...

+ Inheritance diagram for h5_space_type< std::complex< T >, RANK >:
+ Collaboration diagram for h5_space_type< std::complex< T >, 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::complex< T > *a)
 
static auto get_address (const std::complex< T > *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, hsize_t RANK>
struct qmcplusplus::h5_space_type< std::complex< T >, RANK >

specialization of h5_space_type for std::complex<T>

Raize the dimension of the space by 1 and set the last dimension=2

Definition at line 62 of file hdf_dataspace.h.

Member Typedef Documentation

◆ Base

using Base = h5_space_type<T, RANK + 1>

Definition at line 64 of file hdf_dataspace.h.

Constructor & Destructor Documentation

◆ h5_space_type()

h5_space_type ( )
inline

Definition at line 68 of file hdf_dataspace.h.

References h5_space_type< T, RANK >::dims.

68 { dims[RANK] = 2; }
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 67 of file hdf_dataspace.h.

67 { 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::complex< T > *  a)
inlinestatic

Definition at line 69 of file hdf_dataspace.h.

69 { return Base::get_address(reinterpret_cast<T*>(a)); }
static auto get_address(T *a)
return the address
Definition: hdf_dataspace.h:53

◆ get_address() [2/2]

static auto get_address ( const std::complex< T > *  a)
inlinestatic

Definition at line 70 of file hdf_dataspace.h.

70 { return Base::get_address(reinterpret_cast<const T*>(a)); }
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: