|
dune-common 2.12-git
|
#include <dune/common/parallel/mpipack.hh>
Public Member Functions | |
| MPIPack (Communication< MPI_Comm > comm, std::size_t size=0) | |
| MPIPack (const MPIPack &)=delete | |
| MPIPack & | operator= (const MPIPack &other)=delete |
| MPIPack (MPIPack &&)=default | |
| MPIPack & | operator= (MPIPack &&other)=default |
| template<class T > | |
| void | pack (const T &data) |
| Packs the data into the object. Enlarges the internal buffer if necessary. | |
| template<class T > | |
| auto | unpack (T &data) -> std::enable_if_t< decltype(getMPIData(data))::static_size, void > |
| Unpacks data from the object. | |
| template<class T > | |
| auto | unpack (T &data) -> std::enable_if_t<!decltype(getMPIData(data))::static_size, void > |
| Unpacks data from the object. | |
| template<typename T > | |
| MPIPack & | read (T &t) |
| Unpacks data from the object. | |
| template<typename T > | |
| MPIPack & | write (const T &t) |
| Packs the data into the object. Enlarges the internal buffer if necessary. | |
| void | resize (size_t size) |
| Resizes the internal buffer. | |
| void | enlarge (int s) |
| Enlarges the internal buffer. | |
| size_t | size () const |
| Returns the size of the internal buffer. | |
| void | seek (int p) |
| Sets the position in the buffer where the next pack/unpack operation should take place. | |
| int | tell () const |
| Gets the position in the buffer where the next pack/unpack operation should take place. | |
| bool | eof () const |
| Checks whether the end of the buffer is reached. | |
Static Public Member Functions | |
| static int | getPackSize (int len, const MPI_Comm &comm, const MPI_Datatype &dt) |
Returns the size of the data needed to store the data in an MPIPack. See MPI_Pack_size. | |
Friends | |
| struct | MPIData< MPIPack > |
| struct | MPIData< const MPIPack > |
| template<typename T > | |
| MPIPack & | operator<< (MPIPack &p, const T &t) |
| Packs the data into the object. Enlarges the internal buffer if necessary. | |
| template<typename T > | |
| MPIPack & | operator>> (MPIPack &p, T &t) |
| Unpacks data from the object. | |
| bool | operator== (const MPIPack &a, const MPIPack &b) |
| bool | operator!= (const MPIPack &a, const MPIPack &b) |
Constructor & Destructor Documentation
◆ MPIPack() [1/3]
|
inline |
◆ MPIPack() [2/3]
◆ MPIPack() [3/3]
|
default |
Member Function Documentation
◆ enlarge()
◆ eof()
|
inline |
Checks whether the end of the buffer is reached.
◆ getPackSize()
|
inlinestatic |
Returns the size of the data needed to store the data in an MPIPack. See MPI_Pack_size.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pack()
Packs the data into the object. Enlarges the internal buffer if necessary.
- Exceptions
-
MPIError
◆ read()
Unpacks data from the object.
- Exceptions
-
MPIError
◆ resize()
|
inline |
Resizes the internal buffer.
- Parameters
-
size new size of internal buffer
◆ seek()
Sets the position in the buffer where the next pack/unpack operation should take place.
◆ size()
|
inline |
Returns the size of the internal buffer.
◆ tell()
|
inline |
Gets the position in the buffer where the next pack/unpack operation should take place.
◆ unpack() [1/2]
|
inline |
Unpacks data from the object.
- Exceptions
-
MPIError
◆ unpack() [2/2]
|
inline |
Unpacks data from the object.
- Exceptions
-
MPIError
◆ write()
Packs the data into the object. Enlarges the internal buffer if necessary.
- Exceptions
-
MPIError
Friends And Related Symbol Documentation
◆ MPIData< const MPIPack >
◆ MPIData< MPIPack >
◆ operator!=
◆ operator<<
Packs the data into the object. Enlarges the internal buffer if necessary.
- Exceptions
-
MPIError
◆ operator==
◆ operator>>
Unpacks data from the object.
- Exceptions
-
MPIError
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8