#include <dune/grid/geometrygrid/datahandle.hh>
Public Types |
| typedef WrappedHandle::DataType | DataType |
| | data type of data to communicate
|
Public Member Functions |
| | CommDataHandle (const Grid &grid, WrappedHandle &handle) |
| bool | contains (int dim, int codim) const |
| | returns true if data for given valid codim should be communicated
|
| bool | fixedsize (int dim, int codim) const |
| | returns true if size of data per entity of given dim and codim is a constant
|
| template<class HostEntity > |
| size_t | size (const HostEntity &hostEntity) const |
| template<class MessageBuffer , class HostEntity > |
| void | gather (MessageBuffer &buffer, const HostEntity &hostEntity) const |
| template<class MessageBuffer , class HostEntity > |
| void | scatter (MessageBuffer &buffer, const HostEntity &hostEntity, size_t size) |
| size_t | size (const EntityType &e) const |
| | how many objects of type DataType have to be sent for a given entity
|
| void | gather (MessageBufferImp &buff, const EntityType &e) const |
| | pack data from user to message buffer
|
| void | scatter (MessageBufferImp &buff, const EntityType &e, size_t n) |
Member Typedef Documentation
data type of data to communicate
Constructor & Destructor Documentation
template<class Grid , class WrappedHandle >
Member Function Documentation
template<class Grid , class WrappedHandle >
template<class Grid , class WrappedHandle >
template<class Grid , class WrappedHandle >
template<class MessageBuffer , class HostEntity >
pack data from user to message buffer
- Parameters
-
| buff | message buffer provided by the grid |
| e | entity for which date should be packed to buffer |
template<class Grid , class WrappedHandle >
template<class MessageBuffer , class HostEntity >
unpack data from message buffer to user n is the number of objects sent by the sender
- Parameters
-
| buff | message buffer provided by the grid |
| e | entity for which date should be unpacked from buffer |
| n | number of data written to buffer for this entity before |
template<class Grid , class WrappedHandle >
template<class HostEntity >
how many objects of type DataType have to be sent for a given entity
- Note
- Only the sender side needs to know this size.
- Parameters
-
| e | entity for which the size should be dertermined |
The documentation for this class was generated from the following file: