Dune::BufferedCommunicator< T > Class Template Reference
[ISTL Communication]
#include <communicator.hh>
Detailed Description
template<typename T>
class Dune::BufferedCommunicator< T >
A communicator that uses buffers to gather and scatter the data to be send or received.
Before the data is sent it it copied to a consecutive buffer and then that buffer is sent. The data is received in another buffer and then copied to the actual position.
Public Types | |
typedef Dune::Interface< T > | Interface |
The type of the interface. | |
typedef Interface::GlobalIndex | GlobalIndex |
The type of the global index. | |
typedef Interface::Attribute | Attribute |
The type of the attributes. | |
Public Member Functions | |
BufferedCommunicator () | |
Constructor. | |
template<class Data> | |
EnableIf< is_same< SizeOne, typename CommPolicy< Data > ::IndexedTypeFlag >::value, void >::Type | build (const Interface &interface) |
Build the buffers and information for the communication process. | |
template<class Data> | |
void | build (const Data &source, const Data &target, const Interface &interface) |
Build the buffers and information for the communication process. | |
template<class GatherScatter, class Data> | |
void | forward (const Data &source, Data &dest) |
Send from source to target. | |
template<class GatherScatter, class Data> | |
void | backward (Data &source, const Data &dest) |
Communicate in the reverse direction, i.e. send from target to source. | |
template<class GatherScatter, class Data> | |
void | forward (Data &data) |
Forward send where target and source are the same. | |
template<class GatherScatter, class Data> | |
void | backward (Data &data) |
Backward send where target and source are the same. | |
void | free () |
Free the allocated memory (i.e. buffers and message information. | |
~BufferedCommunicator () | |
Destructor. |
The documentation for this class was generated from the following file: