h5cpp 0.7
A modern C++ wrapper for the HDF5 C library
Loading...
Searching...
No Matches
hdf5::dataspace::SelectionManager Class Reference

interface for selection management More...

#include <selection_manager.hpp>

Public Member Functions

 SelectionManager ()=delete
 not default constructible
 
 SelectionManager (Dataspace &space)
 constructor
 
 SelectionManager (const SelectionManager &)=default
 copy constructor
 
void operator() (SelectionOperation ops, const Selection &selection) const
 apply a selection
 
size_t size () const
 return the number of elements in the current selection
 
SelectionType type () const
 get the type of the current selection
 
void all () const
 select everything
 
void none () const
 select nothing
 

Detailed Description

The SelectionManager provides an interface to access the selections made on a Dataspace. It stores a reference to the dataspace it belongs to and applies or removes selections on this dataspace.

Constructor & Destructor Documentation

◆ SelectionManager() [1/3]

hdf5::dataspace::SelectionManager::SelectionManager ( )
delete

◆ SelectionManager() [2/3]

hdf5::dataspace::SelectionManager::SelectionManager ( Dataspace space)
Parameters
spacereference to the dataspace the manager instance belongs to

◆ SelectionManager() [3/3]

hdf5::dataspace::SelectionManager::SelectionManager ( const SelectionManager )
default

Use the default implementation here

Member Function Documentation

◆ all()

void hdf5::dataspace::SelectionManager::all ( ) const

◆ none()

void hdf5::dataspace::SelectionManager::none ( ) const

◆ operator()()

void hdf5::dataspace::SelectionManager::operator() ( SelectionOperation  ops,
const Selection selection 
) const
Exceptions
std::runtime_errorin case of a failure
Parameters
opsselection operator
selectionreference to the selection to apply

◆ size()

size_t hdf5::dataspace::SelectionManager::size ( ) const

This value may differ from the number of elements stored in a dataspace.

Exceptions
std::runtime_errorin case of a failure

◆ type()

SelectionType hdf5::dataspace::SelectionManager::type ( ) const

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