ALPSCore reference
Public Member Functions | List of all members
alps::alea::deserializer Struct Referenceabstract

#include <core.hpp>

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

Public Member Functions

virtual void enter (const std::string &group)=0
 
virtual void exit ()=0
 
virtual std::vector< size_t > get_shape (const std::string &key)=0
 
virtual void read (const std::string &key, ndview< double >)=0
 
virtual void read (const std::string &key, ndview< std::complex< double >>)=0
 
virtual void read (const std::string &key, ndview< complex_op< double >>)=0
 
virtual void read (const std::string &key, ndview< long >)=0
 
virtual void read (const std::string &key, ndview< unsigned long >)=0
 
virtual deserializerclone ()
 
virtual ~deserializer ()
 

Detailed Description

Foster the deserialization of data from disk.

The serialization interface writes a hierarchy of named groups, traversed by enter() and exit(), each containing a set of primitives or key-value pairs, read out by the read() family of methods.

Each read() method read to the ndview::data() buffer, if given. If that field is nullptr, it shall instead read but discard the data.

See also
alps::alea::deserialize(), alps::alea::serializer

Definition at line 352 of file core.hpp.

Constructor & Destructor Documentation

virtual alps::alea::deserializer::~deserializer ( )
inlinevirtual

Destructor

Definition at line 382 of file core.hpp.

Member Function Documentation

virtual deserializer* alps::alea::deserializer::clone ( )
inlinevirtual

Returns a copy of *this created using new

Definition at line 379 of file core.hpp.

virtual void alps::alea::deserializer::enter ( const std::string &  group)
pure virtual

Descends into a group with name group

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::exit ( )
pure virtual

Ascends from the lowermost group

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual std::vector<size_t> alps::alea::deserializer::get_shape ( const std::string &  key)
pure virtual

Retrieves metadata for a primitive

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::read ( const std::string &  key,
ndview< double >   
)
pure virtual

Reads a named multi-dimensional array of double

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::read ( const std::string &  key,
ndview< std::complex< double >>   
)
pure virtual

Reads a named multi-dimensional array of double complex

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::read ( const std::string &  key,
ndview< complex_op< double >>   
)
pure virtual

Reads a named multi-dimensional array of double complex operand

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::read ( const std::string &  key,
ndview< long >   
)
pure virtual

Reads a named multi-dimensional array of long

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.

virtual void alps::alea::deserializer::read ( const std::string &  key,
ndview< unsigned long >   
)
pure virtual

Reads a named multi-dimensional array of unsigned long

Implemented in alps::alea::stream_deserializer< Archive >, and alps::alea::hdf5_serializer.


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