preCICE v3.1.2
|
serialized representation of a BoundingBoxMap More...
#include <SerializedPartitioning.hpp>
Public Types | |
using | BoundingBoxMap = std::map<Rank, mesh::BoundingBox> |
Public Member Functions | |
BoundingBoxMap | toBoundingBoxMap () const |
Builds and returns the BoundingBoxMap represented by the serialized state. | |
void | assertValid () const |
asserts the content for correctness | |
void | send (Communication &communication, int rankReceiver) |
void | broadcastSend (Communication &communication) |
Static Public Member Functions | |
static SerializedBoundingBoxMap | serialize (const BoundingBoxMap &bbm) |
static SerializedBoundingBoxMap | receive (Communication &communication, int rankSender) |
receives a SerializedBoundingBoxMap and calls assertValid before returning | |
static SerializedBoundingBoxMap | broadcastReceive (Communication &communication) |
receives a SerializedBoundingBoxMap and calls assertValid before returning | |
Private Member Functions | |
SerializedBoundingBoxMap ()=default | |
Private Attributes | |
std::vector< int > | info |
std::vector< double > | coords |
serialized representation of a BoundingBoxMap
Definition at line 80 of file SerializedPartitioning.hpp.
using precice::com::serialize::SerializedBoundingBoxMap::BoundingBoxMap = std::map<Rank, mesh::BoundingBox> |
Definition at line 82 of file SerializedPartitioning.hpp.
|
privatedefault |
void precice::com::serialize::SerializedBoundingBoxMap::assertValid | ( | ) | const |
asserts the content for correctness
Definition at line 252 of file SerializedPartitioning.cpp.
|
static |
receives a SerializedBoundingBoxMap and calls assertValid before returning
Definition at line 299 of file SerializedPartitioning.cpp.
void precice::com::serialize::SerializedBoundingBoxMap::broadcastSend | ( | Communication & | communication | ) |
Definition at line 291 of file SerializedPartitioning.cpp.
|
static |
receives a SerializedBoundingBoxMap and calls assertValid before returning
Definition at line 280 of file SerializedPartitioning.cpp.
void precice::com::serialize::SerializedBoundingBoxMap::send | ( | Communication & | communication, |
int | rankReceiver ) |
Definition at line 272 of file SerializedPartitioning.cpp.
|
static |
serializes a given BoundingBoxMap
Calls assertValid
Definition at line 186 of file SerializedPartitioning.cpp.
SerializedBoundingBoxMap::BoundingBoxMap precice::com::serialize::SerializedBoundingBoxMap::toBoundingBoxMap | ( | ) | const |
Builds and returns the BoundingBoxMap represented by the serialized state.
Definition at line 218 of file SerializedPartitioning.cpp.
|
private |
AABB coords For 2D: 2, MinX0, MinY0, MaxX0, MaxY0, ... For 3D: 3, MinX0, MinY0, MinZ0, MaxX0, MaxY0, MaxZ0, ...
Definition at line 121 of file SerializedPartitioning.hpp.
|
private |
Num entries, Dimensions, Rank0, Rank1, ...
If there are no entries, then the serialization cannot deduce the amount of dimensions. In this case the serialization will only contain 0!
Definition at line 115 of file SerializedPartitioning.hpp.