HighFive  2.3.1
HighFive - Header-only C++ HDF5 interface
H5Selection.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c), 2017, Adrien Devresse <adrien.devresse@epfl.ch>
3  *
4  * Distributed under the Boost Software License, Version 1.0.
5  * (See accompanying file LICENSE_1_0.txt or copy at
6  * http://www.boost.org/LICENSE_1_0.txt)
7  *
8  */
9 #ifndef H5SELECTION_HPP
10 #define H5SELECTION_HPP
11 
12 #include "H5DataSet.hpp"
13 #include "H5DataSpace.hpp"
14 #include "bits/H5Slice_traits.hpp"
15 
16 namespace HighFive {
17 
23 class Selection : public SliceTraits<Selection> {
24  public:
29  DataSpace getSpace() const noexcept;
30 
36  DataSpace getMemSpace() const noexcept;
37 
42  DataSet& getDataset() noexcept;
43  const DataSet& getDataset() const noexcept;
44 
48  const DataType getDataType() const;
49 
50  private:
51  Selection(const DataSpace& memspace,
52  const DataSpace& file_space,
53  const DataSet& set);
54 
55  DataSpace _mem_space, _file_space;
56  DataSet _set;
57 
58  template <typename Derivate> friend class ::HighFive::SliceTraits;
59  // absolute namespace naming due to GCC bug 52625
60 };
61 
62 } // namespace HighFive
63 
64 #endif // H5SELECTION_HPP
Class representing a dataset.
Definition: H5DataSet.hpp:31
Class representing the space (dimensions) of a dataset.
Definition: H5DataSpace.hpp:37
HDF5 Data Type.
Definition: H5DataType.hpp:42
Selection: represent a view on a slice/part of a dataset.
Definition: H5Selection.hpp:23
DataSpace getMemSpace() const noexcept
getMemSpace
Definition: H5Selection_misc.hpp:24
const DataType getDataType() const
return the datatype of the selection
Definition: H5Selection_misc.hpp:37
DataSet & getDataset() noexcept
getDataSet
Definition: H5Selection_misc.hpp:28
DataSpace getSpace() const noexcept
getSpace
Definition: H5Selection_misc.hpp:20
Definition: H5Slice_traits.hpp:54
Definition: H5_definitions.hpp:15