7 #ifndef ALPS_HDF5_BOOST_OPTIONAL_4ea49b8c8c814a52b0b3c6ac5bcc7839 8 #define ALPS_HDF5_BOOST_OPTIONAL_4ea49b8c8c814a52b0b3c6ac5bcc7839 10 #include <boost/optional.hpp> 17 const boost::optional<T>& value,
18 std::vector<std::size_t> =std::vector<std::size_t>(),
19 std::vector<std::size_t> =std::vector<std::size_t>(),
20 std::vector<std::size_t> =std::vector<std::size_t>())
25 ar.
write(path+
"/@alps_hdf5_optional_empty",
true);
27 ar.
write(path,*value);
28 ar.
write(path+
"/@alps_hdf5_optional_empty",
false);
34 boost::optional<T>& value,
35 std::vector<std::size_t> =std::vector<std::size_t>(),
36 std::vector<std::size_t> =std::vector<std::size_t>(),
37 std::vector<std::size_t> =std::vector<std::size_t>())
40 ar.
read(path+
"/@alps_hdf5_optional_empty", is_empty);
44 ar.
read(path, *value);
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 >())
void delete_group(std::string path) const
auto read(std::string path, T *, std::vector< std::size_t >, std::vector< std::size_t >=std::vector< std::size_t >()) const -> typename std::enable_if<!is_native_type< T >::value, void >::type
auto write(std::string path, T const *value, std::vector< std::size_t > size, std::vector< std::size_t > chunk=std::vector< std::size_t >(), std::vector< std::size_t > offset=std::vector< std::size_t >()) const -> typename std::enable_if<!is_native_type< T >::value, void >::type
bool is_group(std::string path) const
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 >())