MADNESS
0.10.1
|
Specialization of ArchiveImpl
for parallel output archives.
More...
#include <parallel_archive.h>
Static Public Member Functions | |
template<typename Q > | |
static std::enable_if< std::is_base_of< ParallelSerializableObject, Q >::value, const ParallelOutputArchive< localarchiveT > & >::type | wrap_store (const ParallelOutputArchive< localarchiveT > &ar, const Q &t) |
Store the data in the archive. More... | |
template<typename Q > | |
static std::enable_if<!std::is_base_of< ParallelSerializableObject, Q >::value, const ParallelOutputArchive< localarchiveT > & >::type | wrap_store (const ParallelOutputArchive< localarchiveT > &ar, const Q &t) |
Store the data in the archive. More... | |
Specialization of ArchiveImpl
for parallel output archives.
T | The data type. |
|
inlinestatic |
Store the data in the archive.
Parallel objects are forwarded to their implementation of parallel store.
The function only appears (due to enable_if
) if Q
is a parallel serializable object.
Q
necessary? I'm sure it is, but can't figure out why at a first glance. Q | Description needed. |
[in] | ar | The parallel archive. |
[in] | t | The parallel object to store. |
References T().
|
inlinestatic |
Store the data in the archive.
Serial objects write only from process 0.
The function only appears (due to enable_if
) if Q
is not a parallel serializable object.
Q
. Q | Description needed. |
[in] | ar | The parallel archive. |
[in] | t | The serial data. |
References madness::archive::BaseParallelArchive< Archive >::get_world(), madness::archive::BaseParallelArchive< Archive >::local_archive(), and madness::World::rank().