|
ug4
|
copies values from a specified attachment to a stream and back. More...
#include <compol_copy_attachment.h>
Inheritance diagram for ug::ComPol_CopyAttachment< TLayout, TAttachment >:Public Types | |
| typedef Layout::Element | Element |
| typedef Layout::Type | GeomObj |
| typedef Layout::Interface | Interface |
| typedef TLayout | Layout |
| typedef TAttachment::ValueType | Value |
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. | |
| ComPol_CopyAttachment () | |
| Initialises the collector with an invalid grid. | |
| ComPol_CopyAttachment (Grid &grid, TAttachment attachment) | |
| Calls set_target internally. | |
| virtual bool | extract (ug::BinaryBuffer &buff, const Interface &interface) |
| reads the data from the buffer to the given interface . | |
| void | extract_on_constrained_elems_only (bool enable) |
| void | set_attachment (Grid &grid, TAttachment &attachment) |
| The grid and the attachment from where the data shall be copied. | |
| virtual | ~ComPol_CopyAttachment () |
Public Member Functions inherited from pcl::ICommunicationPolicy< TLayout > | |
| 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 int | get_required_buffer_size (const Interface &interface) |
| returns the size of the buffer in bytes, that will be required for interface-communication. | |
| virtual | ~ICommunicationPolicy () |
Protected Attributes | |
| Grid::AttachmentAccessor< GeomObj, TAttachment > | m_aaVal |
| bool | m_extractOnConstrainedElemsOnly |
copies values from a specified attachment to a stream and back.
TLayout::Type has to be either Vertex, Edge, Face or Volume.
| typedef Layout::Element ug::ComPol_CopyAttachment< TLayout, TAttachment >::Element |
| typedef Layout::Type ug::ComPol_CopyAttachment< TLayout, TAttachment >::GeomObj |
| typedef Layout::Interface ug::ComPol_CopyAttachment< TLayout, TAttachment >::Interface |
| typedef TLayout ug::ComPol_CopyAttachment< TLayout, TAttachment >::Layout |
| typedef TAttachment::ValueType ug::ComPol_CopyAttachment< TLayout, TAttachment >::Value |
| ug::ComPol_CopyAttachment< TNodeLayout, TAttachment >::ComPol_CopyAttachment | ( | ) |
Initialises the collector with an invalid grid.
be sure to call set_source before passing it to a communicator.
| ug::ComPol_CopyAttachment< TNodeLayout, TAttachment >::ComPol_CopyAttachment | ( | Grid & | grid, |
| TAttachment | attachment | ||
| ) |
Calls set_target internally.
References ug::ComPol_CopyAttachment< TLayout, TAttachment >::set_attachment().
|
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().
| void ug::ComPol_CopyAttachment< TNodeLayout, TAttachment >::extract_on_constrained_elems_only | ( | bool | enable | ) |
| void ug::ComPol_CopyAttachment< 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.
Referenced by ug::ComPol_CopyAttachment< TLayout, TAttachment >::ComPol_CopyAttachment().
|
protected |
|
protected |