ALPSCore reference
set.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #ifndef ALPS_HDF5_SET_HPP_2a637be7f9f94f558c3f3ec131dbae11
8 #define ALPS_HDF5_SET_HPP_2a637be7f9f94f558c3f3ec131dbae11
9 
10 #include <set>
11 
12 namespace alps {
13  namespace hdf5 {
14 
15  template <typename T>
16  void save(alps::hdf5::archive& ar, const std::string& path,
17  const std::set<T>& value,
18  std::vector<std::size_t> size=std::vector<std::size_t>(),
19  std::vector<std::size_t> chunk=std::vector<std::size_t>(),
20  std::vector<std::size_t> offset=std::vector<std::size_t>())
21  {
22  throw std::logic_error("save<std::set>() is not yet implemented");
23  }
24 
25  template <typename T>
26  void load(alps::hdf5::archive& ar, const std::string& path,
27  std::set<T>& value,
28  std::vector<std::size_t> size=std::vector<std::size_t>(),
29  std::vector<std::size_t> chunk=std::vector<std::size_t>(),
30  std::vector<std::size_t> offset=std::vector<std::size_t>())
31  {
32  throw std::logic_error("load<std::set>() is not yet implemented");
33  }
34 
35  } // hdf5::
36 } // alps::
37 
38 
39 #endif /* ALPS_HDF5_SET_HPP_2a637be7f9f94f558c3f3ec131dbae11 */
40 
41 
void load(archive &ar, std::string const &path, T &value, std::vector< std::size_t > chunk=std::vector< std::size_t >(), std::vector< std::size_t >=std::vector< std::size_t >())
Definition: archive.hpp:309
std::enable_if<!is_sequence< T >::value, std::size_t >::type size(T const &)
Definition: size.hpp:20
void save(archive &ar, std::string const &path, T const &value, std::vector< std::size_t >=std::vector< std::size_t >(), std::vector< std::size_t > chunk=std::vector< std::size_t >(), std::vector< std::size_t >=std::vector< std::size_t >())
Definition: archive.hpp:292