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

#include <stream_serializer.hpp>

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

Public Member Functions

 stream_serializer (Archive &ar)
 
void enter (const std::string &) override
 
void exit () override
 
void write (const std::string &, ndview< const double > data_view) override
 
void write (const std::string &, ndview< const std::complex< double >> data_view) override
 
void write (const std::string &, ndview< const complex_op< double >> data_view) override
 
void write (const std::string &, ndview< const long > data_view) override
 
void write (const std::string &, ndview< const unsigned long > data_view) override
 
- Public Member Functions inherited from alps::alea::serializer
virtual serializerclone ()
 
virtual ~serializer ()
 

Protected Member Functions

template<typename T >
void do_write (const ndview< const T > &data_view)
 

Detailed Description

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

stream_serializer

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

Definition at line 29 of file stream_serializer.hpp.

Constructor & Destructor Documentation

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

Definition at line 34 of file stream_serializer.hpp.

Member Function Documentation

template<typename Archive>
template<typename T >
void alps::alea::stream_serializer< Archive >::do_write ( const ndview< const T > &  data_view)
inlineprotected

Definition at line 67 of file stream_serializer.hpp.

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

Creates and descends into a group with name group

Implements alps::alea::serializer.

Definition at line 39 of file stream_serializer.hpp.

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

Ascends from the lowermost group

Implements alps::alea::serializer.

Definition at line 40 of file stream_serializer.hpp.

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

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

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

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

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


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