15#include <initializer_list>
62 explicit DataSpace(
const std::vector<size_t>& dims);
73 explicit DataSpace(
const std::array<size_t, N>& dims);
83 DataSpace(
const std::initializer_list<size_t>& dims);
94 template <
typename... Args>
95 explicit DataSpace(
size_t dim1, Args... dims);
110 template <
typename IT,
111 typename =
typename std::enable_if<!std::is_integral<IT>::value, IT>
::type>
126 explicit DataSpace(
const std::vector<size_t>& dims,
const std::vector<size_t>& maxdims);
235 template <
typename T>
247 template <std::
size_t N, std::
size_t W
idth>
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:31
static DataSpace FromCharArrayStrings(const char(&string_array)[N][Width])
Create a DataSpace from a value of type string array.
Definition H5Dataspace_misc.hpp:128
static const ObjectType type
Definition H5DataSpace.hpp:33
static DataSpace From(const T &value)
Automatically deduce the DataSpace from a container/value.
Definition H5Dataspace_misc.hpp:122
size_t getNumberDimensions() const
Returns the number of dimensions of a DataSpace.
Definition H5Dataspace_misc.hpp:94
std::vector< size_t > getMaxDimensions() const
Returns the maximum size of the dataset in each dimension.
Definition H5Dataspace_misc.hpp:110
DataspaceType
An enum to create scalar and null DataSpace with DataSpace::DataSpace(DataspaceType dtype).
Definition H5DataSpace.hpp:48
@ dataspace_scalar
Value to create scalar DataSpace.
Definition H5DataSpace.hpp:49
@ dataspace_null
Value to create null DataSpace.
Definition H5DataSpace.hpp:50
static DataSpace Scalar()
Create a scalar DataSpace.
Definition H5Dataspace_misc.hpp:45
size_t getElementCount() const
Return the number of elements in this DataSpace.
Definition H5Dataspace_misc.hpp:106
std::vector< size_t > getDimensions() const
Returns the size of the dataset in each dimension.
Definition H5Dataspace_misc.hpp:98
DataSpace clone() const
Create a copy of the DataSpace which will have different id.
Definition H5Dataspace_misc.hpp:88
static DataSpace Null()
Create a null DataSpace.
Definition H5Dataspace_misc.hpp:49
static const size_t UNLIMITED
Magic value to specify that a DataSpace can grow without limit.
Definition H5DataSpace.hpp:41
File class.
Definition H5File.hpp:24
Definition H5Object.hpp:54
Definition H5_definitions.hpp:22
ObjectType
Enum of the types of objects (H5O api)
Definition H5Object.hpp:24