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
-
A The 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 >
|
inline |
Send the data to the first node
Definition at line 154 of file replicator.h.
Member Function Documentation
◆ done()
template<typename A >
|
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 >
|
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
-
callback The callback object
Definition at line 209 of file replicator.h.
The documentation for this class was generated from the following file:
- TiledArray/replicator.h