preCICE v3.2.0
Loading...
Searching...
No Matches
precice::com::serialize::SerializedBoundingBoxMap Class Reference

serialized representation of a BoundingBoxMap More...

#include <SerializedPartitioning.hpp>

Collaboration diagram for precice::com::serialize::SerializedBoundingBoxMap:
[legend]

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

Detailed Description

serialized representation of a BoundingBoxMap

Definition at line 80 of file SerializedPartitioning.hpp.

Member Typedef Documentation

◆ BoundingBoxMap

Constructor & Destructor Documentation

◆ SerializedBoundingBoxMap()

precice::com::serialize::SerializedBoundingBoxMap::SerializedBoundingBoxMap ( )
privatedefault

Member Function Documentation

◆ assertValid()

void precice::com::serialize::SerializedBoundingBoxMap::assertValid ( ) const

asserts the content for correctness

Definition at line 252 of file SerializedPartitioning.cpp.

◆ broadcastReceive()

SerializedBoundingBoxMap precice::com::serialize::SerializedBoundingBoxMap::broadcastReceive ( Communication & communication)
static

receives a SerializedBoundingBoxMap and calls assertValid before returning

Definition at line 299 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ broadcastSend()

void precice::com::serialize::SerializedBoundingBoxMap::broadcastSend ( Communication & communication)

Definition at line 291 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ receive()

SerializedBoundingBoxMap precice::com::serialize::SerializedBoundingBoxMap::receive ( Communication & communication,
int rankSender )
static

receives a SerializedBoundingBoxMap and calls assertValid before returning

Definition at line 280 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ send()

void precice::com::serialize::SerializedBoundingBoxMap::send ( Communication & communication,
int rankReceiver )

Definition at line 272 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ serialize()

SerializedBoundingBoxMap precice::com::serialize::SerializedBoundingBoxMap::serialize ( const BoundingBoxMap & bbm)
static

serializes a given BoundingBoxMap

Calls assertValid

Definition at line 186 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ toBoundingBoxMap()

SerializedBoundingBoxMap::BoundingBoxMap precice::com::serialize::SerializedBoundingBoxMap::toBoundingBoxMap ( ) const

Builds and returns the BoundingBoxMap represented by the serialized state.

Todo
replace the coord mess after refactoring of AABB to min and max points

Definition at line 218 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ coords

std::vector<double> precice::com::serialize::SerializedBoundingBoxMap::coords
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.

◆ info

std::vector<int> precice::com::serialize::SerializedBoundingBoxMap::info
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.


The documentation for this class was generated from the following files: