Class representing the space (dimensions) of a dataset.
More...
#include <H5DataSpace.hpp>
|
template<typename ScalarValue > |
static DataSpace | From (const ScalarValue &scalar_value) |
|
template<typename Value > |
static DataSpace | From (const std::vector< Value > &container) |
|
template<typename Value , std::size_t N> |
static DataSpace | From (const std::array< Value, N > &) |
| Currently only supports 1D std::array. More...
|
|
template<typename ValueT , std::size_t N> |
static DataSpace | From (const ValueT(&container)[N]) |
|
template<std::size_t N, std::size_t Width> |
static DataSpace | FromCharArrayStrings (const char(&)[N][Width]) |
|
Class representing the space (dimensions) of a dataset.
◆ DataspaceType
dataspace type
Enumerator |
---|
datascape_scalar | |
datascape_null | |
◆ DataSpace() [1/7]
HighFive::DataSpace::DataSpace |
( |
const std::vector< size_t > & |
dims | ) |
|
|
inlineexplicit |
create a dataspace of N-dimensions Each dimension is configured this way size(dim1) = vec[0] size(dim2) = vec[1] etc...
◆ DataSpace() [2/7]
HighFive::DataSpace::DataSpace |
( |
const std::initializer_list< size_t > & |
items | ) |
|
|
inline |
Make sure that DataSpace({1,2,3}) works on GCC. This is the shortcut form of the vector initializer, but one some compilers (gcc) this does not resolve correctly without this constructor.
◆ DataSpace() [3/7]
template<typename... Args>
HighFive::DataSpace::DataSpace |
( |
size_t |
dim1, |
|
|
Args... |
dims |
|
) |
| |
|
inlineexplicit |
Allow directly listing 1 or more dimensions to initialize, that is, DataSpace(1,2) means DataSpace(std::vector<size_t>{1,2}).
◆ DataSpace() [4/7]
template<class IT , typename >
HighFive::DataSpace::DataSpace |
( |
const IT |
begin, |
|
|
const IT |
end |
|
) |
| |
|
inline |
Create a dataspace from an iterator pair
Explicitly disable DataSpace(int_like, int_like) from trying to use this constructor
◆ DataSpace() [5/7]
HighFive::DataSpace::DataSpace |
( |
const std::vector< size_t > & |
dims, |
|
|
const std::vector< size_t > & |
maxdims |
|
) |
| |
|
inlineexplicit |
Create a resizable N-dimensional dataspace.
- Parameters
-
dims | Initial size of dataspace |
maxdims | Maximum size of the dataspace |
◆ DataSpace() [6/7]
DataSpace create a scalar dataspace or a null dataset.
◆ DataSpace() [7/7]
HighFive::DataSpace::DataSpace |
( |
| ) |
|
|
protecteddefault |
◆ clone()
DataSpace HighFive::DataSpace::clone |
( |
| ) |
const |
|
inline |
Create a new DataSpace with a different id available for modifications
◆ From() [1/4]
template<typename ScalarValue >
DataSpace HighFive::DataSpace::From |
( |
const ScalarValue & |
scalar_value | ) |
|
|
inlinestatic |
Create a dataspace matching a single element of a basic type supported type are integrals (int,long), floating points (float,double) and std::string
◆ From() [2/4]
template<typename Value , std::size_t N>
DataSpace HighFive::DataSpace::From |
( |
const std::array< Value, N > & |
| ) |
|
|
inlinestatic |
Currently only supports 1D std::array.
Create a dataspace matching the container dimensions for a std::array.
◆ From() [3/4]
template<typename Value >
DataSpace HighFive::DataSpace::From |
( |
const std::vector< Value > & |
container | ) |
|
|
inlinestatic |
Create a dataspace matching the container dimensions and size Supported Containers are:
- vector of fundamental types
- vector of std::string
- boost::multi_array (with H5_USE_BOOST defined)
◆ From() [4/4]
template<typename ValueT , std::size_t N>
DataSpace HighFive::DataSpace::From |
( |
const ValueT(&) |
container[N] | ) |
|
|
inlinestatic |
◆ FromCharArrayStrings()
template<std::size_t N, std::size_t Width>
DataSpace HighFive::DataSpace::FromCharArrayStrings |
( |
const |
char(&)[N][Width] | ) |
|
|
inlinestatic |
◆ getDimensions()
std::vector< size_t > HighFive::DataSpace::getDimensions |
( |
| ) |
const |
|
inline |
getDimensions
- Returns
- return a vector of N-element, each element is the size of the associated dataset dimension
◆ getElementCount()
size_t HighFive::DataSpace::getElementCount |
( |
| ) |
const |
|
inline |
getElementCount
- Returns
- the total number of elements in the dataspace
◆ getMaxDimensions()
std::vector< size_t > HighFive::DataSpace::getMaxDimensions |
( |
| ) |
const |
|
inline |
getMaxDimensions
- Returns
- return a vector of N-element, each element is the size of the associated dataset maximum dimension
◆ getNumberDimensions()
size_t HighFive::DataSpace::getNumberDimensions |
( |
| ) |
const |
|
inline |
getNumberDimensions
- Returns
- the number of dimensions in the current dataspace
◆ Attribute
◆ DataSet
◆ File
◆ type
◆ UNLIMITED
const size_t HighFive::DataSpace::UNLIMITED = SIZE_MAX |
|
static |
The documentation for this class was generated from the following files: