Reference documentation for deal.II version 9.2.0
|
#include <deal.II/base/mpi.h>
Public Member Functions | |
DuplicatedCommunicator (const MPI_Comm &communicator) | |
DuplicatedCommunicator (const DuplicatedCommunicator &)=delete | |
~DuplicatedCommunicator () | |
const MPI_Comm & | operator* () const |
DuplicatedCommunicator & | operator= (const DuplicatedCommunicator &)=delete |
Private Attributes | |
MPI_Comm | comm |
Helper class to automatically duplicate and free an MPI communicator.
This class duplicates the communicator given in the constructor using duplicate_communicator() and frees it automatically when this object gets destroyed by calling free_communicator(). You can access the wrapped communicator using operator*.
This class exists to easily allow duplicating communicators without having to worry when and how to free it after usage.
|
inlineexplicit |
|
delete |
Do not allow making copies.
|
inline |
|
inline |
|
delete |
Do not allow assignment of this class.
|
private |