preCICE v3.1.2
|
serialized representation of ConnectionMap More...
#include <SerializedPartitioning.hpp>
Public Types | |
using | ConnectionMap = std::map<Rank, std::vector<VertexID>> |
Public Member Functions | |
ConnectionMap | toConnectionMap () const |
Builds and returns the connection map represented by the serialized state. | |
void | assertValid () const |
asserts the content for correctness | |
void | send (Communication &communication, int rankReceiver) const |
void | broadcastSend (Communication &communication) const |
Static Public Member Functions | |
static SerializedConnectionMap | serialize (const ConnectionMap &cm) |
static SerializedConnectionMap | receive (Communication &communication, int rankSender) |
receives a SerializedConnectionMap and calls assertValid before returning | |
static SerializedConnectionMap | broadcastReceive (Communication &communication) |
receives a SerializedConnectionMap and calls assertValid before returning | |
Private Member Functions | |
SerializedConnectionMap ()=default | |
Private Attributes | |
std::vector< int > | content |
serialized representation of ConnectionMap
Definition at line 15 of file SerializedPartitioning.hpp.
using precice::com::serialize::SerializedConnectionMap::ConnectionMap = std::map<Rank, std::vector<VertexID>> |
Definition at line 17 of file SerializedPartitioning.hpp.
|
privatedefault |
void precice::com::serialize::SerializedConnectionMap::assertValid | ( | ) | const |
asserts the content for correctness
Definition at line 67 of file SerializedPartitioning.cpp.
|
static |
receives a SerializedConnectionMap and calls assertValid before returning
Definition at line 114 of file SerializedPartitioning.cpp.
void precice::com::serialize::SerializedConnectionMap::broadcastSend | ( | Communication & | communication | ) | const |
Definition at line 109 of file SerializedPartitioning.cpp.
|
static |
receives a SerializedConnectionMap and calls assertValid before returning
Definition at line 101 of file SerializedPartitioning.cpp.
void precice::com::serialize::SerializedConnectionMap::send | ( | Communication & | communication, |
int | rankReceiver ) const |
|
static |
serializes a given ConnectionMap
Calls assertValid
Definition at line 15 of file SerializedPartitioning.cpp.
SerializedConnectionMap::ConnectionMap precice::com::serialize::SerializedConnectionMap::toConnectionMap | ( | ) | const |
Builds and returns the connection map represented by the serialized state.
Definition at line 40 of file SerializedPartitioning.cpp.
|
private |
Num entries, Rank0, Size0, Entries0, Rank1, Size1, Entries0 ... @TODO move to size_t once we changed VertexIDs to size_t
Definition at line 46 of file SerializedPartitioning.hpp.