h5cpp
0.5.0
A modern C++ wrapper for the HDF5 C library
dataspace.hpp
Go to the documentation of this file.
1
//
2
// (c) Copyright 2017 DESY,ESS
3
//
4
// This file is part of h5cpp.
5
//
6
// This library is free software; you can redistribute it and/or modify it
7
// under the terms of the GNU Lesser General Public License as published
8
// by the Free Software Foundation; either version 2.1 of the License, or
9
// (at your option) any later version.
10
//
11
// This library is distributed in the hope that it will be useful, but
12
// WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY
13
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14
// License for more details.
15
//
16
// You should have received a copy of the GNU Lesser General Public License
17
// along with this library; if not, write to the
18
// Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
19
// Boston, MA 02110-1301 USA
20
// ===========================================================================
21
//
22
// Authors:
23
// Eugen Wintersberger <eugen.wintersberger@desy.de>
24
// Martin Shetty <martin.shetty@esss.se>
25
// Created on: Aug 24, 2017
26
//
27
#pragma once
28
29
#include <
h5cpp/dataspace/type.hpp
>
30
#include <
h5cpp/core/object_handle.hpp
>
31
#include <
h5cpp/core/types.hpp
>
32
#include <
h5cpp/dataspace/selection_manager.hpp
>
33
#include <
h5cpp/core/windows.hpp
>
34
35
namespace
hdf5
{
36
namespace
dataspace {
37
41
class
DLL_EXPORT
Dataspace
{
42
public
:
48
virtual
~
Dataspace
();
49
59
Dataspace
();
60
69
Dataspace
(
ObjectHandle
&&handle);
70
76
Dataspace
(
Dataspace
&&type) =
default
;
77
81
Dataspace
(
const
Dataspace
&space);
82
86
Dataspace
&operator=(
const
Dataspace
&space);
87
93
virtual
hssize_t size()
const
;
94
106
explicit
operator
hid_t()
const
{
107
return
static_cast<
hid_t
>
(handle_);
108
}
109
115
Type
type()
const
;
116
134
bool
is_valid()
const
;
135
144
SelectionManager
selection
;
145
146
protected
:
147
Dataspace
(
Type
type);
148
private
:
149
ObjectHandle
handle_;
150
154
void
swap(
const
Dataspace
&space);
155
156
};
157
158
}
// namespace dataspace
159
}
// namespace hdf5
types.hpp
hdf5::dataspace::Type
Type
Definition:
type.hpp:43
hdf5::dataspace::Dataspace::selection
SelectionManager selection
access to selection manager
Definition:
dataspace.hpp:144
windows.hpp
type.hpp
hdf5::dataspace::SelectionManager
interface for selection management
Definition:
selection_manager.hpp:46
hdf5::ObjectHandle
Wrapper for hid_t object identifiers.
Definition:
object_handle.hpp:66
DLL_EXPORT
#define DLL_EXPORT
Definition:
windows.hpp:29
hdf5::dataspace::Dataspace
dataspace base class
Definition:
dataspace.hpp:41
selection_manager.hpp
object_handle.hpp
hdf5
top-level namespace of the entire library
Definition:
attribute.hpp:45
h5cpp
src
h5cpp
dataspace
dataspace.hpp
Generated on Mon May 2 2022 08:20:20 for h5cpp by
1.8.17