ug4
|
adds marking at extracting side More...
Public Types | |
typedef Layout::Element | Element |
typedef Layout::Type | GeomObj |
typedef Layout::Interface | Interface |
typedef Interface::const_iterator | InterfaceIter |
typedef TLayout | Layout |
![]() | |
typedef Layout::Interface | Interface |
typedef TLayout | Layout |
Public Member Functions | |
virtual bool | collect (ug::BinaryBuffer &buff, const Interface &intfc) |
write surface state for each entry | |
ComPol_GatherSurfaceStates (MultiGrid &mg, MultiElementAttachmentAccessor< SurfaceView::ASurfaceState > &aaElemSurfState) | |
Construct the communication policy with a ug::BoolMarker. | |
virtual bool | extract (ug::BinaryBuffer &buff, const Interface &intfc) |
reads marks from the given stream | |
virtual int | get_required_buffer_size (const Interface &interface) |
returns the size of the buffer in bytes, that will be required for interface-communication. | |
virtual | ~ComPol_GatherSurfaceStates () |
![]() | |
virtual bool | begin_layout_collection (const Layout *pLayout) |
signals the beginning of a layout collection. | |
virtual bool | begin_layout_extraction (const Layout *pLayout) |
signals the beginning of a layout extraction. | |
virtual void | begin_level_extraction (int level) |
signals that a new layout-level will now be processed. | |
virtual bool | end_layout_collection (const Layout *pLayout) |
signals the end of a layout collection | |
virtual bool | end_layout_extraction (const Layout *pLayout) |
signals the end of a layout extraction | |
virtual | ~ICommunicationPolicy () |
Protected Attributes | |
MultiElementAttachmentAccessor< SurfaceView::ASurfaceState > | m_aaESS |
MultiGrid & | m_mg |
adds marking at extracting side
typedef Layout::Element ug::ComPol_GatherSurfaceStates< TLayout >::Element |
typedef Layout::Type ug::ComPol_GatherSurfaceStates< TLayout >::GeomObj |
typedef Layout::Interface ug::ComPol_GatherSurfaceStates< TLayout >::Interface |
typedef Interface::const_iterator ug::ComPol_GatherSurfaceStates< TLayout >::InterfaceIter |
typedef TLayout ug::ComPol_GatherSurfaceStates< TLayout >::Layout |
|
inline |
Construct the communication policy with a ug::BoolMarker.
|
inlinevirtual |
|
inlinevirtual |
write surface state for each entry
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::ComPol_GatherSurfaceStates< TLayout >::m_aaESS, and ug::BinaryBuffer::write().
|
inlinevirtual |
reads marks from the given stream
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::ComPol_GatherSurfaceStates< TLayout >::m_aaESS, and ug::BinaryBuffer::read().
|
inlinevirtual |
returns the size of the buffer in bytes, that will be required for interface-communication.
Determines the size of the buffer on which the extract and receive methods for the given interface will operate. If the buffer-size can't be calculated on both sides (sender and receiver) this method should return -1. This will lead to an additional communication step in which buffer-sizes will be exchanged. If the buffer-size can be calculated on both sides, it makes sense to do so, since this leads to less communication and overall improved performance. The buffer-size has to exactly match the size of required memory. Make sure that you completely fill the buffer during collect(...) and that you read all data during extract(...). The default implementation returns -1.
Reimplemented from pcl::ICommunicationPolicy< TLayout >.
|
protected |
|
protected |