Canoe
Comprehensive Atmosphere N' Ocean Engine
NeighborExchanger< T > Class Template Reference

#include <exchanger.hpp>

Inheritance diagram for NeighborExchanger< T >:
[legend]

Public Types

using Base = Exchanger< T >
 
- Public Types inherited from Exchanger< T >
using DataType = typename MessageTraits< T >::DataType
 
using BufferType = std::vector< DataType >
 

Public Member Functions

 NeighborExchanger ()
 
void Transfer (MeshBlock const *pmb, int n=-1) override
 Send and receive data. More...
 
void ClearBuffer (MeshBlock const *pmb) override
 Clear buffer. More...
 
- Public Member Functions inherited from Exchanger< T >
 Exchanger ()
 
virtual ~Exchanger ()
 
void SetBoundaryStatus (int bid, BoundaryStatus status)
 Set the boundary status. More...
 
- Public Member Functions inherited from ExchangerBase
 ExchangerBase ()
 
virtual ~ExchangerBase ()
 
virtual void PackData (MeshBlock const *pmb)
 Pack data to send buffer. More...
 
virtual bool UnpackData (MeshBlock const *pmb)
 Unpack data from receive buffer. More...
 

Public Attributes

BufferType recv_buffer_ [MessageTraits< T >::num_buffers]
 
BufferType send_buffer_ [MessageTraits< T >::num_buffers]
 

Additional Inherited Members

- Protected Attributes inherited from Exchanger< T >
enum BoundaryStatus status_flag_ [MessageTraits< T >::num_buffers]
 
BufferType send_buffer_ [MessageTraits< T >::num_buffers]
 
BufferType recv_buffer_ [MessageTraits< T >::num_buffers]
 

Detailed Description

template<typename T>
class NeighborExchanger< T >

Definition at line 123 of file exchanger.hpp.

Member Typedef Documentation

◆ Base

template<typename T >
using NeighborExchanger< T >::Base = Exchanger<T>

Definition at line 125 of file exchanger.hpp.

Constructor & Destructor Documentation

◆ NeighborExchanger()

template<typename T >
NeighborExchanger< T >::NeighborExchanger ( )
inline

Definition at line 134 of file exchanger.hpp.

Member Function Documentation

◆ Transfer()

template<typename T >
void NeighborExchanger< T >::Transfer ( MeshBlock const *  pmb,
int  n = -1 
)
overridevirtual

Send and receive data.

Implements ExchangerBase.

Definition at line 19 of file neighbor_exchanger.hpp.

◆ ClearBuffer()

template<typename T >
void NeighborExchanger< T >::ClearBuffer ( MeshBlock const *  pmb)
overridevirtual

Clear buffer.

Reimplemented from Exchanger< T >.

Definition at line 61 of file neighbor_exchanger.hpp.

Member Data Documentation

◆ recv_buffer_

template<typename T >
BufferType Exchanger< T >::recv_buffer_[MessageTraits< T >::num_buffers]

Definition at line 89 of file exchanger.hpp.

◆ send_buffer_

template<typename T >
BufferType Exchanger< T >::send_buffer_[MessageTraits< T >::num_buffers]

Definition at line 88 of file exchanger.hpp.


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