walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T > Class Template Reference

#include <BlockDataHandling.h>

+ Inheritance diagram for walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >:

Public Types

using Function = std::function< T *(IBlock *const)>
 
- Public Types inherited from walberla::domain_decomposition::BlockDataHandling< T >
using value_type = T
 

Public Member Functions

 BlockDataHandlingFunctionAdaptor (const Function &function)
 
 ~BlockDataHandlingFunctionAdaptor () override=default
 
T * initialize (IBlock *const block) override
 must be thread-safe ! More...
 
void serialize (IBlock *const, const BlockDataID &, mpi::SendBuffer &) override
 must be thread-safe ! More...
 
T * deserialize (IBlock *const) override
 must be thread-safe ! More...
 
void deserialize (IBlock *const, const BlockDataID &, mpi::RecvBuffer &) override
 must be thread-safe ! More...
 
- Public Member Functions inherited from walberla::domain_decomposition::BlockDataHandling< T >
virtual ~BlockDataHandling ()=default
 

Private Attributes

Function function_
 

Member Typedef Documentation

◆ Function

template<typename T >
using walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >::Function = std::function<T *(IBlock *const)>

Constructor & Destructor Documentation

◆ BlockDataHandlingFunctionAdaptor()

◆ ~BlockDataHandlingFunctionAdaptor()

Member Function Documentation

◆ deserialize() [1/2]

template<typename T >
T* walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >::deserialize ( IBlock * const  block)
inlineoverridevirtual

must be thread-safe !

Implements walberla::domain_decomposition::BlockDataHandling< T >.

◆ deserialize() [2/2]

template<typename T >
void walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >::deserialize ( IBlock * const  block,
const BlockDataID id,
mpi::RecvBuffer buffer 
)
inlineoverridevirtual

must be thread-safe !

Implements walberla::domain_decomposition::BlockDataHandling< T >.

◆ initialize()

template<typename T >
T* walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >::initialize ( IBlock *const  block)
inlineoverridevirtual

must be thread-safe !

Implements walberla::domain_decomposition::BlockDataHandling< T >.

◆ serialize()

template<typename T >
void walberla::domain_decomposition::internal::BlockDataHandlingFunctionAdaptor< T >::serialize ( IBlock * const  block,
const BlockDataID id,
mpi::SendBuffer buffer 
)
inlineoverridevirtual

must be thread-safe !

Implements walberla::domain_decomposition::BlockDataHandling< T >.

Member Data Documentation

◆ function_


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