ALPSCore reference
Public Member Functions | Protected Member Functions | List of all members
alps::alea::hdf5_serializer Class Reference

#include <hdf5.hpp>

Inheritance diagram for alps::alea::hdf5_serializer:
Inheritance graph
Collaboration diagram for alps::alea::hdf5_serializer:
Collaboration graph

Public Member Functions

 hdf5_serializer (hdf5::archive &ar, const std::string &path)
 
void enter (const std::string &group) override
 
void exit () override
 
void write (const std::string &key, ndview< const double > value) override
 
void write (const std::string &key, ndview< const std::complex< double >> value) override
 
void write (const std::string &key, ndview< const complex_op< double >> value) override
 
void write (const std::string &key, ndview< const long > value) override
 
void write (const std::string &key, ndview< const unsigned long > value) override
 
std::vector< size_t > get_shape (const std::string &key) override
 
void read (const std::string &key, ndview< double > value) override
 
void read (const std::string &key, ndview< std::complex< double >> value) override
 
void read (const std::string &key, ndview< complex_op< double >> value) override
 
void read (const std::string &key, ndview< long > value) override
 
void read (const std::string &key, ndview< unsigned long > value) override
 
 ~hdf5_serializer ()
 
- Public Member Functions inherited from alps::alea::serializer
virtual serializerclone ()
 
virtual ~serializer ()
 
- Public Member Functions inherited from alps::alea::deserializer
virtual deserializerclone ()
 
virtual ~deserializer ()
 

Protected Member Functions

template<typename T >
void do_write (const std::string &relpath, ndview< const T > data)
 
template<typename T >
void do_write (const std::string &relpath, ndview< const std::complex< T >> data)
 
template<typename T >
void do_read (const std::string &relpath, ndview< T > data)
 
template<typename T >
void do_read (const std::string &relpath, ndview< std::complex< T >> data)
 
std::string get_path (const std::string &key)
 
std::vector< size_t > get_extent (const std::string &path)
 

Detailed Description

Definition at line 18 of file hdf5.hpp.

Constructor & Destructor Documentation

alps::alea::hdf5_serializer::hdf5_serializer ( hdf5::archive ar,
const std::string &  path 
)
inline

Definition at line 23 of file hdf5.hpp.

alps::alea::hdf5_serializer::~hdf5_serializer ( )
inline

Definition at line 90 of file hdf5.hpp.

Member Function Documentation

template<typename T >
void alps::alea::hdf5_serializer::do_read ( const std::string &  relpath,
ndview< T >  data 
)
inlineprotected

Definition at line 136 of file hdf5.hpp.

template<typename T >
void alps::alea::hdf5_serializer::do_read ( const std::string &  relpath,
ndview< std::complex< T >>  data 
)
inlineprotected

Definition at line 163 of file hdf5.hpp.

template<typename T >
void alps::alea::hdf5_serializer::do_write ( const std::string &  relpath,
ndview< const T >  data 
)
inlineprotected

Definition at line 102 of file hdf5.hpp.

template<typename T >
void alps::alea::hdf5_serializer::do_write ( const std::string &  relpath,
ndview< const std::complex< T >>  data 
)
inlineprotected

Definition at line 117 of file hdf5.hpp.

void alps::alea::hdf5_serializer::enter ( const std::string &  group)
inlineoverridevirtual

Creates and descends into a group with name group

Implements alps::alea::serializer.

Definition at line 31 of file hdf5.hpp.

void alps::alea::hdf5_serializer::exit ( )
inlineoverridevirtual

Ascends from the lowermost group

Implements alps::alea::serializer.

Definition at line 37 of file hdf5.hpp.

std::vector<size_t> alps::alea::hdf5_serializer::get_extent ( const std::string &  path)
inlineprotected

Definition at line 202 of file hdf5.hpp.

std::string alps::alea::hdf5_serializer::get_path ( const std::string &  key)
inlineprotected

Definition at line 190 of file hdf5.hpp.

std::vector<size_t> alps::alea::hdf5_serializer::get_shape ( const std::string &  key)
inlineoverridevirtual

Retrieves metadata for a primitive

Implements alps::alea::deserializer.

Definition at line 66 of file hdf5.hpp.

void alps::alea::hdf5_serializer::read ( const std::string &  key,
ndview< double >   
)
inlineoverridevirtual

Reads a named multi-dimensional array of double

Implements alps::alea::deserializer.

Definition at line 70 of file hdf5.hpp.

void alps::alea::hdf5_serializer::read ( const std::string &  key,
ndview< std::complex< double >>   
)
inlineoverridevirtual

Reads a named multi-dimensional array of double complex

Implements alps::alea::deserializer.

Definition at line 74 of file hdf5.hpp.

void alps::alea::hdf5_serializer::read ( const std::string &  key,
ndview< complex_op< double >>   
)
inlineoverridevirtual

Reads a named multi-dimensional array of double complex operand

Implements alps::alea::deserializer.

Definition at line 78 of file hdf5.hpp.

void alps::alea::hdf5_serializer::read ( const std::string &  key,
ndview< long >   
)
inlineoverridevirtual

Reads a named multi-dimensional array of long

Implements alps::alea::deserializer.

Definition at line 82 of file hdf5.hpp.

void alps::alea::hdf5_serializer::read ( const std::string &  key,
ndview< unsigned long >   
)
inlineoverridevirtual

Reads a named multi-dimensional array of unsigned long

Implements alps::alea::deserializer.

Definition at line 86 of file hdf5.hpp.

void alps::alea::hdf5_serializer::write ( const std::string &  key,
ndview< const double >   
)
inlineoverridevirtual

Writes a named multi-dimensional array of doubles

Implements alps::alea::serializer.

Definition at line 44 of file hdf5.hpp.

void alps::alea::hdf5_serializer::write ( const std::string &  key,
ndview< const std::complex< double >>   
)
inlineoverridevirtual

Writes a named multi-dimensional array of complex doubles

Implements alps::alea::serializer.

Definition at line 48 of file hdf5.hpp.

void alps::alea::hdf5_serializer::write ( const std::string &  key,
ndview< const complex_op< double >>   
)
inlineoverridevirtual

Writes a named multi-dimensional array of complex operands

Implements alps::alea::serializer.

Definition at line 52 of file hdf5.hpp.

void alps::alea::hdf5_serializer::write ( const std::string &  key,
ndview< const long >   
)
inlineoverridevirtual

Writes a named multi-dimensional array of longs

Implements alps::alea::serializer.

Definition at line 56 of file hdf5.hpp.

void alps::alea::hdf5_serializer::write ( const std::string &  key,
ndview< const unsigned long >   
)
inlineoverridevirtual

Writes a named multi-dimensional array of unsigned longs

Implements alps::alea::serializer.

Definition at line 60 of file hdf5.hpp.


The documentation for this class was generated from the following file: