ALPSCore reference
|
#include <archive.hpp>
Public Types | |
enum | properties { READ = 0x00, WRITE = 0x01, COMPRESS = 0x04, MEMORY = 0x10 } |
Public Member Functions | |
archive () | |
archive (std::string const &filename, std::string mode="r") | |
archive (std::string const &filename, int prop) | |
archive (archive const &arg) | |
virtual | ~archive () |
std::string const & | get_filename () const |
std::string | encode_segment (std::string segment) const |
std::string | decode_segment (std::string segment) const |
std::string | get_context () const |
void | set_context (std::string const &context) |
std::string | complete_path (std::string path) const |
void | open (const std::string &filename, const std::string &mode="r") |
void | close () |
bool | is_open () |
bool | is_data (std::string path) const |
bool | is_attribute (std::string path) const |
bool | is_group (std::string path) const |
bool | is_scalar (std::string path) const |
bool | is_null (std::string path) const |
bool | is_complex (std::string path) const |
template<typename T > | |
bool | is_datatype (std::string path) const |
std::vector< std::string > | list_children (std::string path) const |
std::vector< std::string > | list_attributes (std::string path) const |
std::vector< std::size_t > | extent (std::string path) const |
std::size_t | dimensions (std::string path) const |
void | create_group (std::string path) const |
void | delete_data (std::string path) const |
void | delete_group (std::string path) const |
void | delete_attribute (std::string path) const |
void | set_complex (std::string path) |
detail::archive_proxy< archive > | operator[] (std::string const &path) |
template<typename T > | |
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 |
template<typename T > | |
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 |
template<typename T > | |
auto | read (std::string path, T &value) const -> typename std::enable_if< is_native_type< T >::value, void >::type |
template<typename T > | |
auto | read (std::string path, T *value, std::vector< std::size_t > chunk, std::vector< std::size_t > offset=std::vector< std::size_t >()) const -> typename std::enable_if< is_native_type< T >::value, void >::type |
template<typename T > | |
auto | write (std::string path, T value) const -> typename std::enable_if< is_native_type< T >::value, void >::type |
template<typename T > | |
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 |
template<typename T > | |
auto | is_datatype_impl (std::string path, T) const -> typename std::enable_if< is_native_type< T >::value, bool >::type |
Static Public Member Functions | |
static void | abort () |
Definition at line 92 of file archive.hpp.
Enumerator | |
---|---|
READ | |
WRITE | |
COMPRESS | |
MEMORY |
Definition at line 96 of file archive.hpp.
alps::hdf5::archive::archive | ( | ) |
default constructor to create archive with out openning of any file to be used in conjunction with void open(const std::string &, std::string)
function
Definition at line 33 of file archive.cpp.
alps::hdf5::archive::archive | ( | std::string const & | filename, |
std::string | mode = "r" |
||
) |
Definition at line 52 of file archive.cpp.
alps::hdf5::archive::archive | ( | std::string const & | filename, |
int | prop | ||
) |
Definition at line 35 of file archive.cpp.
alps::hdf5::archive::archive | ( | archive const & | arg | ) |
Definition at line 56 of file archive.cpp.
|
virtual |
Definition at line 66 of file archive.cpp.
|
static |
void alps::hdf5::archive::close | ( | ) |
Definition at line 92 of file archive.cpp.
std::string alps::hdf5::archive::complete_path | ( | std::string | path | ) | const |
Definition at line 153 of file archive.cpp.
void alps::hdf5::archive::create_group | ( | std::string | path | ) | const |
Definition at line 327 of file archive.cpp.
std::string alps::hdf5::archive::decode_segment | ( | std::string | segment | ) | const |
Definition at line 136 of file archive.cpp.
void alps::hdf5::archive::delete_attribute | ( | std::string | path | ) | const |
Definition at line 388 of file archive.cpp.
void alps::hdf5::archive::delete_data | ( | std::string | path | ) | const |
Definition at line 364 of file archive.cpp.
void alps::hdf5::archive::delete_group | ( | std::string | path | ) | const |
Definition at line 376 of file archive.cpp.
std::size_t alps::hdf5::archive::dimensions | ( | std::string | path | ) | const |
Definition at line 314 of file archive.cpp.
std::string alps::hdf5::archive::encode_segment | ( | std::string | segment | ) | const |
Definition at line 128 of file archive.cpp.
std::vector< std::size_t > alps::hdf5::archive::extent | ( | std::string | path | ) | const |
Definition at line 291 of file archive.cpp.
std::string alps::hdf5::archive::get_context | ( | ) | const |
Definition at line 144 of file archive.cpp.
std::string const & alps::hdf5::archive::get_filename | ( | ) | const |
Definition at line 122 of file archive.cpp.
bool alps::hdf5::archive::is_attribute | ( | std::string | path | ) | const |
Definition at line 180 of file archive.cpp.
bool alps::hdf5::archive::is_complex | ( | std::string | path | ) | const |
Definition at line 242 of file archive.cpp.
bool alps::hdf5::archive::is_data | ( | std::string | path | ) | const |
Definition at line 170 of file archive.cpp.
|
inline |
Definition at line 138 of file archive.hpp.
auto alps::hdf5::archive::is_datatype_impl | ( | std::string | path, |
T | |||
) | const -> typename std::enable_if<is_native_type< T >::value, bool >::type |
Definition at line 103 of file archive_free.cpp.
bool alps::hdf5::archive::is_group | ( | std::string | path | ) | const |
Definition at line 189 of file archive.cpp.
bool alps::hdf5::archive::is_null | ( | std::string | path | ) | const |
Definition at line 223 of file archive.cpp.
bool alps::hdf5::archive::is_open | ( | ) |
Definition at line 118 of file archive.cpp.
bool alps::hdf5::archive::is_scalar | ( | std::string | path | ) | const |
Definition at line 199 of file archive.cpp.
std::vector< std::string > alps::hdf5::archive::list_attributes | ( | std::string | path | ) | const |
Definition at line 273 of file archive.cpp.
std::vector< std::string > alps::hdf5::archive::list_children | ( | std::string | path | ) | const |
Definition at line 259 of file archive.cpp.
void alps::hdf5::archive::open | ( | const std::string & | filename, |
const std::string & | mode = "r" |
||
) |
open a new archive file check that the archive is not already opened and construct archive.
Definition at line 104 of file archive.cpp.
detail::archive_proxy< archive > alps::hdf5::archive::operator[] | ( | std::string const & | path | ) |
Definition at line 413 of file archive.cpp.
|
inline |
Definition at line 163 of file archive.hpp.
auto alps::hdf5::archive::read | ( | std::string | path, |
T & | value | ||
) | const -> typename std::enable_if<is_native_type< T >::value, void >::type |
Definition at line 39 of file archive_read.cpp.
auto alps::hdf5::archive::read | ( | std::string | path, |
T * | value, | ||
std::vector< std::size_t > | chunk, | ||
std::vector< std::size_t > | offset = std::vector< std::size_t >() |
||
) | const -> typename std::enable_if< is_native_type< T >::value, void >::type |
void alps::hdf5::archive::set_complex | ( | std::string | path | ) |
Definition at line 397 of file archive.cpp.
void alps::hdf5::archive::set_context | ( | std::string const & | context | ) |
Definition at line 148 of file archive.cpp.
|
inline |
Definition at line 172 of file archive.hpp.
auto alps::hdf5::archive::write | ( | std::string | path, |
T | value | ||
) | const -> typename std::enable_if<is_native_type< T >::value, void >::type |
Definition at line 21 of file archive_write.cpp.
auto alps::hdf5::archive::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 |