15#include <initializer_list>
70 explicit DataSpace(
const std::vector<size_t>& dims);
81 explicit DataSpace(
const std::array<size_t, N>& dims);
91 DataSpace(
const std::initializer_list<size_t>& dims);
102 template <
typename... Args>
103 explicit DataSpace(
size_t dim1, Args... dims);
118 template <
typename IT,
119 typename =
typename std::enable_if<!std::is_integral<IT>::value, IT>
::type>
134 explicit DataSpace(
const std::vector<size_t>& dims,
const std::vector<size_t>& maxdims);
243 template <
typename T>
255 template <std::
size_t N, std::
size_t W
idth>
272 friend DataSpace detail::make_data_space(hid_t hid);
Class representing an Attribute of a DataSet or Group.
Definition H5Attribute.hpp:46
Class representing a dataset.
Definition H5DataSet.hpp:30
Class representing the space (dimensions) of a DataSet.
Definition H5DataSpace.hpp:39
static DataSpace FromCharArrayStrings(const char(&string_array)[N][Width])
Create a DataSpace from a value of type string array.
Definition H5Dataspace_misc.hpp:134
static const ObjectType type
Definition H5DataSpace.hpp:41
static DataSpace fromId(hid_t hid)
Definition H5DataSpace.hpp:261
static DataSpace From(const T &value)
Automatically deduce the DataSpace from a container/value.
Definition H5Dataspace_misc.hpp:128
size_t getNumberDimensions() const
Returns the number of dimensions of a DataSpace.
Definition H5Dataspace_misc.hpp:100
std::vector< size_t > getMaxDimensions() const
Returns the maximum size of the dataset in each dimension.
Definition H5Dataspace_misc.hpp:116
DataspaceType
An enum to create scalar and null DataSpace with DataSpace::DataSpace(DataspaceType dtype).
Definition H5DataSpace.hpp:56
@ dataspace_scalar
Value to create scalar DataSpace.
Definition H5DataSpace.hpp:57
@ dataspace_null
Value to create null DataSpace.
Definition H5DataSpace.hpp:58
static DataSpace Scalar()
Create a scalar DataSpace.
Definition H5Dataspace_misc.hpp:51
size_t getElementCount() const
Return the number of elements in this DataSpace.
Definition H5Dataspace_misc.hpp:112
std::vector< size_t > getDimensions() const
Returns the size of the dataset in each dimension.
Definition H5Dataspace_misc.hpp:104
DataSpace clone() const
Create a copy of the DataSpace which will have different id.
Definition H5Dataspace_misc.hpp:94
static DataSpace Null()
Create a null DataSpace.
Definition H5Dataspace_misc.hpp:55
static const size_t UNLIMITED
Magic value to specify that a DataSpace can grow without limit.
Definition H5DataSpace.hpp:49
File class.
Definition H5File.hpp:24
Definition H5Object.hpp:54
hid_t _hid
Definition H5Object.hpp:105
Definition H5_definitions.hpp:22
ObjectType
Enum of the types of objects (H5O api)
Definition H5Object.hpp:24