33 #ifndef __H__UG__compol_subset__
34 #define __H__UG__compol_subset__
41 template <
class TLayout>
61 return interface.size() *
sizeof(int);
70 iter != interface.end(); ++iter)
72 Element elem = interface.get_element(iter);
74 buff.
write((
char*)&si,
sizeof(
int));
87 iter != interface.end(); ++iter)
89 Element elem = interface.get_element(iter);
90 buff.
read((
char*)&nsi,
sizeof(
int));
specializations are responsible to pack and unpack interface data during communication.
Definition: pcl_communication_structs.h:790
A Buffer for binary data.
Definition: binary_buffer.h:56
void read(char *buf, size_t size)
reads data of the given size (in bytes)
Definition: binary_buffer_impl.h:58
void write(const char *buf, size_t size)
writes data of the given size (in bytes)
Definition: binary_buffer_impl.h:71
Definition: compol_subset.h:43
Layout::Interface Interface
Definition: compol_subset.h:48
virtual int get_required_buffer_size(const Interface &interface)
returns the size of the buffer in bytes, that will be required for interface-communication.
Definition: compol_subset.h:59
Layout::Element Element
Definition: compol_subset.h:47
TLayout Layout
Definition: compol_subset.h:45
ComPol_Subset(ISubsetHandler &sel, bool overwrite=false)
Construct the communication policy with a ug::SubsetHandler.
Definition: compol_subset.h:54
bool m_overwriteEnabled
Definition: compol_subset.h:109
ISubsetHandler & m_sh
Definition: compol_subset.h:108
Interface::const_iterator InterfaceIter
Definition: compol_subset.h:49
virtual bool extract(ug::BinaryBuffer &buff, const Interface &interface)
reads marks from the given stream
Definition: compol_subset.h:82
Layout::Type GeomObj
Definition: compol_subset.h:46
virtual bool collect(ug::BinaryBuffer &buff, const Interface &interface)
writes 1 for selected and 0 for unassigned interface entries
Definition: compol_subset.h:66
Definition: subset_handler_interface.h:223
void assign_subset(TIterator iterBegin, TIterator iterEnd, int subsetIndex)
Definition: subset_handler_interface_impl.hpp:170
int get_subset_index(GridObject *elem) const
Definition: subset_handler_interface.cpp:560