preCICE v3.1.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
precice::com::serialize::SerializedBoundingBox Class Reference

serialized representation of a mesh::BoundingBox More...

#include <SerializedPartitioning.hpp>

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

Public Member Functions

mesh::BoundingBox toBoundingBox () const
 Builds and returns the BoundingBox represented by the serialized state.
 
void assertValid () const
 asserts the content for correctness
 
void send (Communication &communication, int rankReceiver)
 

Static Public Member Functions

static SerializedBoundingBox serialize (const mesh::BoundingBox &bbm)
 
static SerializedBoundingBox receive (Communication &communication, int rankSender)
 receives a SerializedBoundingBox and calls assertValid before returning
 

Private Member Functions

 SerializedBoundingBox ()=default
 

Private Attributes

std::vector< double > coords
 

Detailed Description

serialized representation of a mesh::BoundingBox

Definition at line 50 of file SerializedPartitioning.hpp.

Constructor & Destructor Documentation

◆ SerializedBoundingBox()

precice::com::serialize::SerializedBoundingBox::SerializedBoundingBox ( )
privatedefault

Member Function Documentation

◆ assertValid()

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

asserts the content for correctness

Definition at line 163 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ receive()

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

receives a SerializedBoundingBox and calls assertValid before returning

Definition at line 176 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ send()

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

Definition at line 171 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ serialize()

SerializedBoundingBox precice::com::serialize::SerializedBoundingBox::serialize ( const mesh::BoundingBox & bbm)
static

serializes a given mesh::BoundingBox

Calls assertValid

Definition at line 124 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ toBoundingBox()

mesh::BoundingBox precice::com::serialize::SerializedBoundingBox::toBoundingBox ( ) const

Builds and returns the BoundingBox represented by the serialized state.

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

Definition at line 145 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ coords

std::vector<double> precice::com::serialize::SerializedBoundingBox::coords
private

AABB coords For 2D: 2, MinX, MinY, MaxX, MaxY For 3D: 3, MinX, MinY, MinZ, MaxX, MaxY, MaxZ

Definition at line 76 of file SerializedPartitioning.hpp.


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