h5cpp  0.6.0
A modern C++ wrapper for the HDF5 C library
hdf5::dataspace::SelectionManager Class Reference

interface for selection management More...

#include <selection_manager.hpp>

Public Member Functions

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

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: