ug4
|
#include <compol_selection.h>
Public Types | |
typedef Layout::Element | Element |
typedef Layout::Type | GeomObj |
typedef Layout::Interface | Interface |
typedef Interface::const_iterator | InterfaceIter |
typedef TLayout | Layout |
Public Types inherited from pcl::ICommunicationPolicy< TLayout > | |
typedef Layout::Interface | Interface |
typedef TLayout | Layout |
Public Member Functions | |
virtual bool | collect (ug::BinaryBuffer &buff, const Interface &interface) |
writes 1 for selected and 0 for unselected interface entries More... | |
ComPol_Selection (ISelector &sel, bool select=true, bool deselect=true) | |
Construct the communication policy with a ug::Selector. More... | |
virtual bool | extract (ug::BinaryBuffer &buff, const Interface &interface) |
reads marks from the given stream More... | |
virtual int | get_required_buffer_size (const Interface &interface) |
returns the size of the buffer in bytes, that will be required for interface-communication. More... | |
Public Member Functions inherited from pcl::ICommunicationPolicy< TLayout > | |
virtual bool | begin_layout_collection (const Layout *pLayout) |
signals the beginning of a layout collection. More... | |
virtual bool | begin_layout_extraction (const Layout *pLayout) |
signals the beginning of a layout extraction. More... | |
virtual void | begin_level_extraction (int level) |
signals that a new layout-level will now be processed. More... | |
virtual bool | end_layout_collection (const Layout *pLayout) |
signals the end of a layout collection More... | |
virtual bool | end_layout_extraction (const Layout *pLayout) |
signals the end of a layout extraction More... | |
virtual | ~ICommunicationPolicy () |
Protected Member Functions | |
bool | deselect_allowed () |
bool | select_allowed () |
Protected Attributes | |
bool | m_bDeselectAllowed |
bool | m_bSelectAllowed |
ISelector & | m_sel |
typedef Layout::Element ug::ComPol_Selection< TLayout >::Element |
typedef Layout::Type ug::ComPol_Selection< TLayout >::GeomObj |
typedef Layout::Interface ug::ComPol_Selection< TLayout >::Interface |
typedef Interface::const_iterator ug::ComPol_Selection< TLayout >::InterfaceIter |
typedef TLayout ug::ComPol_Selection< TLayout >::Layout |
|
inline |
Construct the communication policy with a ug::Selector.
Through the parameters select and deselect one may specify whether a process selects and/or deselects elements based on the received selection status.
|
inlinevirtual |
writes 1 for selected and 0 for unselected interface entries
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::ISelector::get_selection_status(), ug::ComPol_Selection< TLayout >::m_sel, and ug::BinaryBuffer::write().
|
inlineprotected |
References ug::ComPol_Selection< TLayout >::m_bDeselectAllowed.
Referenced by ug::ComPol_Selection< TLayout >::extract().
|
inlinevirtual |
reads marks from the given stream
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::ISelector::deselect(), ug::ComPol_Selection< TLayout >::deselect_allowed(), ug::ComPol_Selection< TLayout >::m_sel, ug::BinaryBuffer::read(), ug::ISelector::select(), and ug::ComPol_Selection< TLayout >::select_allowed().
|
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 >.
|
inlineprotected |
References ug::ComPol_Selection< TLayout >::m_bSelectAllowed.
Referenced by ug::ComPol_Selection< TLayout >::extract().
|
protected |
Referenced by ug::ComPol_Selection< TLayout >::deselect_allowed().
|
protected |
Referenced by ug::ComPol_Selection< TLayout >::select_allowed().
|
protected |
Referenced by ug::ComPol_Selection< TLayout >::collect(), and ug::ComPol_Selection< TLayout >::extract().