MADNESS 0.10.1
madness::archive::ContainerRecordOutputArchive Class Reference

#include <parallel_dc_archive.h>

Inheritance diagram for madness::archive::ContainerRecordOutputArchive:
Collaboration diagram for madness::archive::ContainerRecordOutputArchive:

Public Types

using keyT = long
Public Types inherited from madness::archive::BaseOutputArchive
using is_saving = std::true_type
 Type used by Boost.Serialization to determine if this object is an output archive.
Public Types inherited from madness::archive::BaseArchive
using is_loading = std::false_type
 Type used by Boost.Serialization to determine if this object is an input archive.
using is_saving = std::false_type
 Type used by Boost.Serialization to determine if this object is an output archive.

Public Member Functions

 ContainerRecordOutputArchive (World &subworld, containerT &dc, const keyT &key, const bool framed=true)
 ~ContainerRecordOutputArchive ()
void close ()
void flush ()
VectorOutputArchive & get_archive ()
void open ()
template<class T>
std::enable_if< madness::is_trivially_serializable< T >::value, void >::type store (const T *t, long n) const
Public Member Functions inherited from madness::archive::BaseArchive
 BaseArchive ()

Private Types

using containerT = WorldContainer<keyT,std::vector<unsigned char>>

Private Attributes

VectorOutputArchive ar
bool closed = false
containerT & dc
const bool framed
keyT key
World & subworld
std::vector< unsigned char > v

Additional Inherited Members

Static Public Attributes inherited from madness::archive::BaseOutputArchive
static constexpr bool is_output_archive = true
 Flag to determine if this object is an output archive.
Static Public Attributes inherited from madness::archive::BaseArchive
static constexpr bool is_archive = true
 Flag to determine if this object is an archive.
static constexpr bool is_input_archive = false
 Flag to determine if this object is an input archive.
static constexpr bool is_output_archive = false
 Flag to determine if this object is an output archive.
static constexpr bool is_parallel_archive = false
 Flag to determine if this object is a parallel archive.

Member Typedef Documentation

◆ containerT

◆ keyT

Constructor & Destructor Documentation

◆ ContainerRecordOutputArchive()

madness::archive::ContainerRecordOutputArchive::ContainerRecordOutputArchive ( World & subworld,
containerT & dc,
const keyT & key,
const bool framed = true )
inline
Parameters
[in]framedfalse writes the bare payload, never chunked (see ContainerRecordTag)

References ar, dc, framed, key, subworld, and v.

◆ ~ContainerRecordOutputArchive()

madness::archive::ContainerRecordOutputArchive::~ContainerRecordOutputArchive ( )
inline

References close().

Member Function Documentation

◆ close()

◆ flush()

void madness::archive::ContainerRecordOutputArchive::flush ( )
inline

◆ get_archive()

VectorOutputArchive & madness::archive::ContainerRecordOutputArchive::get_archive ( )
inline

References ar.

◆ open()

void madness::archive::ContainerRecordOutputArchive::open ( )
inline

◆ store()

template<class T>
std::enable_if< madness::is_trivially_serializable< T >::value, void >::type madness::archive::ContainerRecordOutputArchive::store ( const T * t,
long n ) const
inline

References ar, MADNESS_CHECK, and subworld.

Member Data Documentation

◆ ar

VectorOutputArchive madness::archive::ContainerRecordOutputArchive::ar
private

◆ closed

bool madness::archive::ContainerRecordOutputArchive::closed = false
private

Referenced by close().

◆ dc

containerT& madness::archive::ContainerRecordOutputArchive::dc
private

◆ framed

const bool madness::archive::ContainerRecordOutputArchive::framed
private

◆ key

keyT madness::archive::ContainerRecordOutputArchive::key
private

◆ subworld

World& madness::archive::ContainerRecordOutputArchive::subworld
private

◆ v

std::vector<unsigned char> madness::archive::ContainerRecordOutputArchive::v
private

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