TiledArray::detail::Replicator< A > Class Template Reference
Inheritance diagram for TiledArray::detail::Replicator< A >:
Collaboration diagram for TiledArray::detail::Replicator< A >:

Documentation

template<typename A>
class TiledArray::detail::Replicator< A >

Replicate a Array object.

This object will create a replicated Array from a distributed Array.

Template Parameters
AThe array type Homeworld = M7R-227

Definition at line 35 of file replicator.h.

Public Member Functions

 Replicator (const A &source, const A destination)
 
bool done ()
 Check that the replication is complete. More...
 
void register_callback (madness::CallbackInterface *callback)
 Add a callback. More...
 

Constructor & Destructor Documentation

◆ Replicator()

template<typename A >
TiledArray::detail::Replicator< A >::Replicator ( const A &  source,
const A  destination 
)
inline

Send the data to the first node

Definition at line 154 of file replicator.h.

Member Function Documentation

◆ done()

template<typename A >
bool TiledArray::detail::Replicator< A >::done ( )
inline

Check that the replication is complete.

Returns
true when all data has been transfered.

Definition at line 198 of file replicator.h.

◆ register_callback()

template<typename A >
void TiledArray::detail::Replicator< A >::register_callback ( madness::CallbackInterface *  callback)
inline

Add a callback.

The callback is called when the local data has been sent to all nodes. If the data has already been sent to all nodes, the callback is notified immediately.

Parameters
callbackThe callback object

Definition at line 209 of file replicator.h.


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