HighFive 3.0.0
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
HighFive::Selection Class Reference

Selection: represent a view on a slice/part of a dataset. More...

#include <H5Selection.hpp>

Inheritance diagram for HighFive::Selection:
Collaboration diagram for HighFive::Selection:

Public Member Functions

DataSpace getSpace () const
 getSpace
 
DataSpace getMemSpace () const
 getMemSpace
 
DataSetgetDataset ()
 getDataSet
 
const DataSetgetDataset () const
 
DataType getDataType () const
 return the datatype of the selection
 
- Public Member Functions inherited from HighFive::SliceTraits< Selection >
Selection select (const HyperSlab &hyper_slab) const
 Select an hyper_slab in the current Slice/Dataset.
 
Selection select (const HyperSlab &hyper_slab, const DataSpace &memspace) const
 Select an hyper_slab in the current Slice/Dataset.
 
Selection select (const std::vector< size_t > &offset, const std::vector< size_t > &count, const std::vector< size_t > &stride={}, const std::vector< size_t > &block={}) 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.
 
Selection select (const std::vector< size_t > &columns) const
 Select a set of columns in the last dimension of this dataset.
 
Selection select (const ElementSet &elements) const
 Select a region in the current Slice/Dataset out of a list of elements.
 
Selection select (const ProductSet &product_set) const
 Select a region consisting of a product of slices.
 
read (const DataTransferProps &xfer_props=DataTransferProps()) const
 
void read (T &array, const DataTransferProps &xfer_props=DataTransferProps()) const
 
void read_raw (T *array, const DataType &mem_datatype, const DataTransferProps &xfer_props=DataTransferProps()) const
 
void read_raw (T *array, const DataTransferProps &xfer_props=DataTransferProps()) const
 
void write (const T &buffer, const DataTransferProps &xfer_props=DataTransferProps())
 
void write_raw (const T *buffer, const DataType &mem_datatype, const DataTransferProps &xfer_props=DataTransferProps())
 
void write_raw (const T *buffer, const DataTransferProps &xfer_props=DataTransferProps())
 
Selection squeezeMemSpace (const std::vector< size_t > &axes) const
 Return a Selection with axes squeezed from the memspace.
 
Selection reshapeMemSpace (const std::vector< size_t > &dims) const
 Return a Selection with a simple memspace with dims.
 

Protected Member Functions

 Selection (const DataSpace &memspace, const DataSpace &file_space, const DataSet &set)
 

Detailed Description

Selection: represent a view on a slice/part of a dataset.

A Selection is valid only if its parent dataset is valid

Constructor & Destructor Documentation

◆ Selection()

HighFive::Selection::Selection ( const DataSpace memspace,
const DataSpace file_space,
const DataSet set 
)
inlineprotected

Member Function Documentation

◆ getDataset() [1/2]

DataSet & HighFive::Selection::getDataset ( )
inline

getDataSet

Returns
parent dataset of this selection

◆ getDataset() [2/2]

const DataSet & HighFive::Selection::getDataset ( ) const
inline

◆ getDataType()

DataType HighFive::Selection::getDataType ( ) const
inline

return the datatype of the selection

Returns
return the datatype of the selection

◆ getMemSpace()

DataSpace HighFive::Selection::getMemSpace ( ) const
inline

getMemSpace

Returns
Dataspace associated with the memory representation of this selection

◆ getSpace()

DataSpace HighFive::Selection::getSpace ( ) const
inline

getSpace

Returns
Dataspace associated with this selection

The documentation for this class was generated from the following files: