hops
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
HighFive::Selection
Selection: represent a view on a slice/part of a dataset.
Definition: H5Selection.hpp:23
HighFive::Selection::getSpace
DataSpace getSpace() const noexcept
getSpace
Definition: H5Selection_misc.hpp:20
H5Slice_traits.hpp
HighFive::DataType
HDF5 Data Type.
Definition: H5DataType.hpp:42
HighFive::SliceTraits
Definition: H5Slice_traits.hpp:54
H5DataSet.hpp
H5DataSpace.hpp
HighFive::Selection::getDataset
DataSet & getDataset() noexcept
getDataSet
Definition: H5Selection_misc.hpp:28
HighFive::Selection::getMemSpace
DataSpace getMemSpace() const noexcept
getMemSpace
Definition: H5Selection_misc.hpp:24
HighFive::DataSpace
Class representing the space (dimensions) of a dataset.
Definition: H5DataSpace.hpp:37
HighFive::Selection::getDataType
const DataType getDataType() const
return the datatype of the selection
Definition: H5Selection_misc.hpp:37
HighFive::DataSet
Class representing a dataset.
Definition: H5DataSet.hpp:27
set
HOPS_HDF5_FOUND set(HIGHFIVE_USE_EIGEN ON) set(HIGHFIVE_USE_BOOST ON) set(HIGHFIVE_UNIT_TESTS OFF) set(HIGHFIVE_EXAMPLES OFF) add_subdirectory(HighFive) add_dependencies(hops HighFive) target_link_libraries(hops INTERFACE HighFive) target_link_libraries(hops $
Definition: hops/Third-party/CMakeLists.txt:11
HighFive
Definition: H5_definitions.hpp:15