ug4
|
Serialization callback for grid attachments. More...
#include <serialization.h>
Public Member Functions | |
GeomObjAttachmentSerializer (Grid &g, TAttachment a) | |
virtual void | read_data (BinaryBuffer &in, TGeomObj *o) |
read data associated with the given object. Pure virtual. More... | |
virtual void | write_data (BinaryBuffer &out, TGeomObj *o) const |
write data associated with the given object. Pure virtual. More... | |
virtual | ~GeomObjAttachmentSerializer () |
Public Member Functions inherited from ug::GeomObjDataSerializer< TGeomObj > | |
virtual void | deserialization_done () |
this method will be called after read_info has been called for all geometric objects. More... | |
virtual void | deserialization_starts () |
this method is called after read_info has been called for all geometric objects. More... | |
virtual void | read_info (BinaryBuffer &in) |
Read the info written during write_info here. Default: empty implementation. More... | |
virtual void | write_info (BinaryBuffer &out) const |
can be used to write arbitrary info to the file. More... | |
virtual | ~GeomObjDataSerializer () |
Static Public Member Functions | |
static SmartPtr< GeomObjDataSerializer< TGeomObj > > | create (Grid &g, TAttachment a) |
Private Attributes | |
Grid::AttachmentAccessor< TGeomObj, TAttachment > | m_aa |
Serialization callback for grid attachments.
template class where TGeomObj should be one of the following types: Vertex, Edge, Face, Volume.
Note that the attachment is automatically attached, if not yet present.
|
inline |
|
inlinevirtual |
|
inlinestatic |
References ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::GeomObjAttachmentSerializer().
Referenced by ug::DistributeDomain().
|
inlinevirtual |
read data associated with the given object. Pure virtual.
Implements ug::GeomObjDataSerializer< TGeomObj >.
References ug::Deserialize(), and ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::m_aa.
|
inlinevirtual |
write data associated with the given object. Pure virtual.
Implements ug::GeomObjDataSerializer< TGeomObj >.
References ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::m_aa, and ug::Serialize().
|
private |