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

serialized representation of ConnectionMap More...

#include <SerializedPartitioning.hpp>

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

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
 

Detailed Description

serialized representation of ConnectionMap

Definition at line 15 of file SerializedPartitioning.hpp.

Member Typedef Documentation

◆ ConnectionMap

Definition at line 17 of file SerializedPartitioning.hpp.

Constructor & Destructor Documentation

◆ SerializedConnectionMap()

precice::com::serialize::SerializedConnectionMap::SerializedConnectionMap ( )
privatedefault

Member Function Documentation

◆ assertValid()

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

asserts the content for correctness

Definition at line 67 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ broadcastReceive()

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

receives a SerializedConnectionMap and calls assertValid before returning

Definition at line 114 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ broadcastSend()

void precice::com::serialize::SerializedConnectionMap::broadcastSend ( Communication & communication) const

Definition at line 109 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ receive()

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

receives a SerializedConnectionMap and calls assertValid before returning

Definition at line 101 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ send()

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

Definition at line 96 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ serialize()

SerializedConnectionMap precice::com::serialize::SerializedConnectionMap::serialize ( const ConnectionMap & cm)
static

serializes a given ConnectionMap

Calls assertValid

Definition at line 15 of file SerializedPartitioning.cpp.

Here is the call graph for this function:

◆ toConnectionMap()

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.

Here is the call graph for this function:

Member Data Documentation

◆ content

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


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