#include <H5Slice_traits.hpp>
|
Selection | select (const std::vector< size_t > &offset, const std::vector< size_t > &count, const std::vector< size_t > &stride=std::vector< size_t >()) const |
| Select a region in the current Slice/Dataset of count points at offset separated by stride . If strides are not provided they will default to 1 in all dimensions. More...
|
|
Selection | select (const std::vector< size_t > &columns) const |
| Select a set of columns in the last dimension of this dataset. More...
|
|
Selection | select (const ElementSet &elements) const |
| Select a region in the current Slice/Dataset out of a list of elements. More...
|
|
template<typename T > |
void | read (T &array) const |
|
template<typename T > |
void | read (T *array, const DataType &dtype=DataType()) const |
|
template<typename T > |
void | write (const T &buffer) |
|
template<typename T > |
void | write_raw (const T *buffer, const DataType &dtype=DataType()) |
|
◆ read() [1/2]
template<typename Derivate >
template<typename T >
Read the entire dataset into a buffer An exception is raised is if the numbers of dimension of the buffer and of the dataset are different.
The array type can be a N-pointer or a N-vector. For plain pointers not dimensionality checking will be performed, it is the user's responsibility to ensure that the right amount of space has been allocated.
◆ read() [2/2]
template<typename Derivate >
template<typename T >
Read the entire dataset into a raw buffer
No dimensionality checks will be performed, it is the user's responsibility to ensure that the right amount of space has been allocated.
- Parameters
-
array | A buffer containing enough space for the data |
dtype | The type of the data, in case it cannot be automatically guessed |
◆ select() [1/3]
template<typename Derivate >
Select a region in the current Slice/Dataset out of a list of elements.
◆ select() [2/3]
template<typename Derivate >
Select a set of columns in the last dimension of this dataset.
The column indices must be smaller than the dimension size.
◆ select() [3/3]
template<typename Derivate >
Selection HighFive::SliceTraits< Derivate >::select |
( |
const std::vector< size_t > & |
offset, |
|
|
const std::vector< size_t > & |
count, |
|
|
const std::vector< size_t > & |
stride = std::vector<size_t>() |
|
) |
| const |
|
inline |
Select a region in the current Slice/Dataset of count
points at offset
separated by stride
. If strides are not provided they will default to 1 in all dimensions.
vector offset and count have to be from the same dimension
◆ write()
template<typename Derivate >
template<typename T >
Write the integrality N-dimension buffer to this dataset An exception is raised is if the numbers of dimension of the buffer and of the dataset are different
The array type can be a N-pointer or a N-vector ( e.g int** integer two dimensional array )
◆ write_raw()
template<typename Derivate >
template<typename T >
Write from a raw buffer into this dataset
No dimensionality checks will be performed, it is the user's responsibility to ensure that the buffer holds the right amount of elements. For n-dimensional matrices the buffer layout follows H5 default conventions.
- Parameters
-
buffer | A buffer containing the data to be written |
dtype | The type of the data, in case it cannot be automatically guessed |
The documentation for this class was generated from the following files: