ALPSCore reference
Public Member Functions | Protected Member Functions | List of all members
alps::alea::stream_deserializer< Archive > Class Template Reference

#include <stream_serializer.hpp>

Inheritance diagram for alps::alea::stream_deserializer< Archive >:
Inheritance graph
Collaboration diagram for alps::alea::stream_deserializer< Archive >:
Collaboration graph

Public Member Functions

 stream_deserializer (Archive &ar)
 
void enter (const std::string &) override
 
void exit () override
 
std::vector< size_t > get_shape (const std::string &key) override
 
void read (const std::string &, ndview< double > value) override
 
void read (const std::string &, ndview< std::complex< double >> value) override
 
void read (const std::string &, ndview< complex_op< double >> value) override
 
void read (const std::string &, ndview< long > value) override
 
void read (const std::string &, ndview< unsigned long > value) override
 
- Public Member Functions inherited from alps::alea::deserializer
virtual deserializerclone ()
 
virtual ~deserializer ()
 

Protected Member Functions

template<typename T >
void do_read (ndview< T > &data_view)
 

Detailed Description

template<typename Archive>
class alps::alea::stream_deserializer< Archive >

stream_deserializer

This class establishes connection between the ALEA serialization interface and Boost/HPX serialization frameworks. Its instance is used in free function load() (see below) that is called upon Boost/HPX deserialization of ALEA *_result<T> types.

Definition at line 88 of file stream_serializer.hpp.

Constructor & Destructor Documentation

template<typename Archive>
alps::alea::stream_deserializer< Archive >::stream_deserializer ( Archive &  ar)
inline

Definition at line 93 of file stream_serializer.hpp.

Member Function Documentation

template<typename Archive>
template<typename T >
void alps::alea::stream_deserializer< Archive >::do_read ( ndview< T > &  data_view)
inlineprotected

Definition at line 133 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::enter ( const std::string &  group)
inlineoverridevirtual

Descends into a group with name group

Implements alps::alea::deserializer.

Definition at line 98 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::exit ( )
inlineoverridevirtual

Ascends from the lowermost group

Implements alps::alea::deserializer.

Definition at line 99 of file stream_serializer.hpp.

template<typename Archive>
std::vector<size_t> alps::alea::stream_deserializer< Archive >::get_shape ( const std::string &  key)
inlineoverridevirtual

Retrieves metadata for a primitive

Implements alps::alea::deserializer.

Definition at line 105 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::read ( const std::string &  key,
ndview< double >   
)
inlineoverridevirtual

Reads a named multi-dimensional array of double

Implements alps::alea::deserializer.

Definition at line 110 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::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 114 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::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 118 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::read ( const std::string &  key,
ndview< long >   
)
inlineoverridevirtual

Reads a named multi-dimensional array of long

Implements alps::alea::deserializer.

Definition at line 122 of file stream_serializer.hpp.

template<typename Archive>
void alps::alea::stream_deserializer< Archive >::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 126 of file stream_serializer.hpp.


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