guard object for selections
More...
#include <view.hpp>
The View class applies selections on a dataspace. Since a copy of the original dataspace is created the former one remains unchanged.
◆ View() [1/5]
hdf5::dataspace::View::View |
( |
| ) |
|
|
default |
Need this for STL container compatibility. Can rely on default implementation provided by the compiler.
◆ View() [2/5]
hdf5::dataspace::View::View |
( |
const View & |
| ) |
|
|
default |
Need this for STL container compatibility. Use the default implementation provided by the compiler.
◆ View() [3/5]
hdf5::dataspace::View::View |
( |
const Dataspace & |
space | ) |
|
|
explicit |
This constructor applies now selection but selects all elements in the dataspace.
- Exceptions
-
std::runtime_error | in the case of a failure |
- Parameters
-
space | reference to the original dataspace |
◆ View() [4/5]
Creates a copy of the dataspace and applies all selections provieed by th selection list to this copy.
- Exceptions
-
std::runtime_error | in case of a failure |
- Parameters
-
space | reference to the original dataspace |
selections | reference to the list of selections to apply |
◆ View() [5/5]
Creates a copy of the dataspace and applies a single hyperslab on it. This is a conveniance constructor in the case that we need only a single hyperslab.
- Exceptions
-
std::runtime_error | in case of a failure |
- Parameters
-
space | reference to the original dataspace |
selection | reference to the original hyperslab |
◆ operator hid_t()
hdf5::dataspace::View::operator hid_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator()() [1/2]
void hdf5::dataspace::View::operator() |
( |
const Hyperslab & |
slab | ) |
const |
This is a mere convienance function for situations where a single Hyperslab should be selected. This even might be the most common case at all.
- Exceptions
-
std::runtime_error | in case of a failure |
- Parameters
-
slab | reference to the hyperslab |
◆ operator()() [2/2]
void hdf5::dataspace::View::operator() |
( |
const SelectionList & |
selections | ) |
const |
Calling this operator will erase all current selections and replace them by the new set of selections provided by the selections
argument.
- Exceptions
-
◆ size()
size_t hdf5::dataspace::View::size |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- /home/jenkins/h5cpp/src/h5cpp/dataspace/view.hpp