h5cpp  0.5.0
A modern C++ wrapper for the HDF5 C library
pool.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 // Jan Kotanski <jan.kotanski@desy.de>
24 // Created on: Nov 1, 2021
25 //
26 #pragma once
27 
28 #include <map>
29 
32 #include <h5cpp/core/types.hpp>
33 #include <h5cpp/error/error.hpp>
34 
35 namespace hdf5 {
36 namespace dataspace {
37 
42 {
43  public:
44 
55  const Simple & getSimple(size_t size);
56 
68  const Simple & getSimple(const Dimensions &current,
69  const Dimensions &maximum = Dimensions());
70 
71  private:
72 #ifdef _MSC_VER
73 #pragma warning(push)
74 #pragma warning(disable:4251)
75 #endif
76  std::map<hdf5::Dimensions, Simple> pool_map;
77 #ifdef _MSC_VER
78 #pragma warning(pop)
79 #endif
80 };
81 
82 } // namespace dataspace
83 } // namespace hdf5
types.hpp
hdf5::dataspace::Simple
simple multidimensional dataspace
Definition: simple.hpp:43
hdf5::Dimensions
std::vector< hsize_t > Dimensions
Definition: types.hpp:32
DLL_EXPORT
#define DLL_EXPORT
Definition: windows.hpp:29
simple.hpp
dataspace.hpp
hdf5::dataspace::DataspacePool
data space object pool
Definition: pool.hpp:41
hdf5
top-level namespace of the entire library
Definition: attribute.hpp:45
error.hpp