Canoe
Comprehensive Atmosphere N' Ocean Engine
|
#include <exchanger.hpp>
Public Types | |
using | DataType = typename MessageTraits< T >::DataType |
using | BufferType = std::vector< DataType > |
Public Member Functions | |
Exchanger () | |
virtual | ~Exchanger () |
virtual void | ClearBuffer (MeshBlock const *pmb) |
Clear buffer. More... | |
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... | |
virtual void | Transfer (MeshBlock const *pmb, int n=-1)=0 |
Send and receive data. More... | |
Protected Attributes | |
enum BoundaryStatus | status_flag_ [MessageTraits< T >::num_buffers] |
BufferType | send_buffer_ [MessageTraits< T >::num_buffers] |
BufferType | recv_buffer_ [MessageTraits< T >::num_buffers] |
Definition at line 42 of file exchanger.hpp.
using Exchanger< T >::DataType = typename MessageTraits<T>::DataType |
Definition at line 44 of file exchanger.hpp.
using Exchanger< T >::BufferType = std::vector<DataType> |
Definition at line 45 of file exchanger.hpp.
Definition at line 50 of file exchanger.hpp.
Definition at line 59 of file exchanger.hpp.
|
inlinevirtual |
Clear buffer.
Reimplemented in NeighborExchanger< T >, and NeighborExchanger< ParticleBase >.
Definition at line 73 of file exchanger.hpp.
|
inline |
Set the boundary status.
Definition at line 82 of file exchanger.hpp.
|
protected |
Definition at line 82 of file exchanger.hpp.
|
protected |
Definition at line 88 of file exchanger.hpp.
|
protected |
Definition at line 89 of file exchanger.hpp.