Dune Core Modules (2.10.0)
Communication message buffer interface. This class describes the interface for reading and writing data to the communication message buffer. As message buffers might be deeply implemented in various packages the message buffers implementations cannot be derived from this interface class. Therefore we just apply the engine concept to wrap the message buffer call and make sure that the interface is fulfilled. More...
#include <dune/grid/common/datahandleif.hh>
Public Member Functions | |
MessageBufferIF (MessageBufferImp &buff) | |
stores reference to original buffer buff | |
template<class T > | |
void | write (const T &val) |
just wraps the call of the internal buffer method write which writes the data of type T from the buffer by using the assignment operator of T More... | |
template<class T > | |
void | read (T &val) |
just wraps the call of the internal buffer method read which reads the data of type T from the buffer by using the assignment operator of T More... | |
Detailed Description
class Dune::MessageBufferIF< MessageBufferImp >
Communication message buffer interface. This class describes the interface for reading and writing data to the communication message buffer. As message buffers might be deeply implemented in various packages the message buffers implementations cannot be derived from this interface class. Therefore we just apply the engine concept to wrap the message buffer call and make sure that the interface is fulfilled.
- Template Parameters
-
MessageBufferImp Implementation of message buffer used by the grids' communication method
Member Function Documentation
◆ read()
|
inline |
just wraps the call of the internal buffer method read which reads the data of type T from the buffer by using the assignment operator of T
- Parameters
-
val reference to object that is read
The method is not const, because calling it advances the iterator to the current data of the MessageBufferImp member.
◆ write()
|
inline |
just wraps the call of the internal buffer method write which writes the data of type T from the buffer by using the assignment operator of T
- Parameters
-
val reference to object that is written
The documentation for this class was generated from the following file:
- dune/grid/common/datahandleif.hh