ug4
|
Gathers the values stored in vector-attachments. More...
#include <compol_gather_vec_attachment.h>
Public Types | |
typedef Layout::Element | Element |
typedef Layout::Type | GeomObj |
typedef Layout::Interface | Interface |
typedef TLayout | Layout |
typedef Vector::value_type | Value |
typedef TAttachment::ValueType | Vector |
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 the data for the given interface to the buffer. More... | |
ComPol_GatherVecAttachment () | |
Initialises the collector with an invalid grid. More... | |
ComPol_GatherVecAttachment (Grid &grid, TAttachment &attachment) | |
Calls set_target internally. More... | |
virtual bool | extract (ug::BinaryBuffer &buff, const Interface &interface) |
reads the data from the buffer to the given interface . More... | |
void | set_attachment (Grid &grid, TAttachment &attachment) |
The grid and the attachment from where the data shall be copied. More... | |
virtual | ~ComPol_GatherVecAttachment () |
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 int | get_required_buffer_size (const Interface &interface) |
returns the size of the buffer in bytes, that will be required for interface-communication. More... | |
virtual | ~ICommunicationPolicy () |
Protected Attributes | |
Grid::AttachmentAccessor< GeomObj, TAttachment > | m_aaVec |
Gathers the values stored in vector-attachments.
TLayout::Type has to be either Vertex, Edge, Face or Volume. TAttachment has to be of the type std::vector<SomeType> or compatible.
typedef Layout::Element ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::Element |
typedef Layout::Type ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::GeomObj |
typedef Layout::Interface ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::Interface |
typedef TLayout ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::Layout |
typedef Vector::value_type ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::Value |
typedef TAttachment::ValueType ug::ComPol_GatherVecAttachment< TLayout, TAttachment >::Vector |
ug::ComPol_GatherVecAttachment< TNodeLayout, TAttachment >::ComPol_GatherVecAttachment |
Initialises the collector with an invalid grid.
be sure to call set_source before passing it to a communicator.
ug::ComPol_GatherVecAttachment< TNodeLayout, TAttachment >::ComPol_GatherVecAttachment | ( | Grid & | grid, |
TAttachment & | attachment | ||
) |
Calls set_target internally.
|
inlinevirtual |
|
virtual |
writes the data for the given interface to the buffer.
Derived from ICollector Make sure that all members of the interface are members of the grid too.
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::Serialize().
|
virtual |
reads the data from the buffer to the given interface .
Derived from IExtractor Make sure that all members of the interface are members of the grid too.
Implements pcl::ICommunicationPolicy< TLayout >.
References ug::Deserialize(), and Vector< TValueType >::size().
void ug::ComPol_GatherVecAttachment< TNodeLayout, TAttachment >::set_attachment | ( | Grid & | grid, |
TAttachment & | attachment | ||
) |
The grid and the attachment from where the data shall be copied.
Make sure that attachment is attached to the correct element-type of the grid.
|
protected |