Packaging for pod data.
More...
#include <MPIPacker.hpp>
|
| static std::size_t | packSize (const T &data, Parallel::MPIComm comm) |
| | Calculates the pack size for a POD.
|
| |
| static std::size_t | packSize (const T *, std::size_t n, Parallel::MPIComm comm) |
| | Calculates the pack size for an array of POD.
|
| |
| static void | pack (const T &data, std::vector< char > &buffer, int &position, Parallel::MPIComm comm) |
| | Pack a POD.
|
| |
| static void | pack (const T *data, std::size_t n, std::vector< char > &buffer, int &position, Parallel::MPIComm comm) |
| | Pack an array of POD.
|
| |
| static void | unpack (T &data, std::vector< char > &buffer, int &position, Parallel::MPIComm comm) |
| | Unpack a POD.
|
| |
| static void | unpack (T *data, std::size_t n, std::vector< char > &buffer, int &position, Parallel::MPIComm comm) |
| | Unpack an array of POD.
|
| |
template<class T>
struct Opm::Mpi::detail::Packing< true, T >
Packaging for pod data.
◆ pack() [1/2]
template<class T >
| static void Opm::Mpi::detail::Packing< true, T >::pack |
( |
const T & |
data, |
|
|
std::vector< char > & |
buffer, |
|
|
int & |
position, |
|
|
Parallel::MPIComm |
comm |
|
) |
| |
|
inlinestatic |
Pack a POD.
- Parameters
-
| data | The variable to pack |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
| comm | The communicator to use |
◆ pack() [2/2]
template<class T >
| static void Opm::Mpi::detail::Packing< true, T >::pack |
( |
const T * |
data, |
|
|
std::size_t |
n, |
|
|
std::vector< char > & |
buffer, |
|
|
int & |
position, |
|
|
Parallel::MPIComm |
comm |
|
) |
| |
|
inlinestatic |
Pack an array of POD.
- Parameters
-
| data | The array to pack |
| n | Length of array |
| buffer | Buffer to pack into |
| position | Position in buffer to use |
| comm | The communicator to use |
◆ packSize() [1/2]
Calculates the pack size for a POD.
- Parameters
-
| data | The data to pack |
| comm | The communicator to use |
◆ packSize() [2/2]
Calculates the pack size for an array of POD.
- Parameters
-
| data | The array to pack |
| n | Length of array |
| comm | The communicator to use |
◆ unpack() [1/2]
template<class T >
| static void Opm::Mpi::detail::Packing< true, T >::unpack |
( |
T & |
data, |
|
|
std::vector< char > & |
buffer, |
|
|
int & |
position, |
|
|
Parallel::MPIComm |
comm |
|
) |
| |
|
inlinestatic |
Unpack a POD.
- Parameters
-
| data | The variable to unpack |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |
| comm | The communicator to use |
◆ unpack() [2/2]
template<class T >
| static void Opm::Mpi::detail::Packing< true, T >::unpack |
( |
T * |
data, |
|
|
std::size_t |
n, |
|
|
std::vector< char > & |
buffer, |
|
|
int & |
position, |
|
|
Parallel::MPIComm |
comm |
|
) |
| |
|
inlinestatic |
Unpack an array of POD.
- Parameters
-
| data | The array to unpack |
| n | Length of array |
| buffer | Buffer to unpack from |
| position | Position in buffer to use |
| comm | The communicator to use |
The documentation for this struct was generated from the following file: