ug4
ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment > Class Template Reference

Serialization callback for grid attachments. More...

#include <serialization.h>

+ Inheritance diagram for ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >:

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
 

Detailed Description

template<class TGeomObj, class TAttachment>
class ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >

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.

Constructor & Destructor Documentation

◆ GeomObjAttachmentSerializer()

template<class TGeomObj , class TAttachment >
ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::GeomObjAttachmentSerializer ( Grid g,
TAttachment  a 
)
inline

◆ ~GeomObjAttachmentSerializer()

template<class TGeomObj , class TAttachment >
virtual ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::~GeomObjAttachmentSerializer ( )
inlinevirtual

Member Function Documentation

◆ create()

template<class TGeomObj , class TAttachment >
static SmartPtr<GeomObjDataSerializer<TGeomObj> > ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::create ( Grid g,
TAttachment  a 
)
inlinestatic

◆ read_data()

template<class TGeomObj , class TAttachment >
virtual void ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::read_data ( BinaryBuffer in,
TGeomObj *  o 
)
inlinevirtual

read data associated with the given object. Pure virtual.

Implements ug::GeomObjDataSerializer< TGeomObj >.

References ug::Deserialize(), and ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::m_aa.

◆ write_data()

template<class TGeomObj , class TAttachment >
virtual void ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::write_data ( BinaryBuffer out,
TGeomObj *  o 
) const
inlinevirtual

write data associated with the given object. Pure virtual.

Implements ug::GeomObjDataSerializer< TGeomObj >.

References ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::m_aa, and ug::Serialize().

Member Data Documentation

◆ m_aa

template<class TGeomObj , class TAttachment >
Grid::AttachmentAccessor<TGeomObj, TAttachment> ug::GeomObjAttachmentSerializer< TGeomObj, TAttachment >::m_aa
private

The documentation for this class was generated from the following file: