|
Graphite Version 3
An experimental 3D geometry processing program
|
Generic implementation of Serializer. More...
#include <OGF/gom/services/serializer.h>
Public Member Functions | |
| bool | serialize_read (std::istream &stream, void *addr) override |
| Reads a value from a stream. | |
| bool | serialize_write (std::ostream &stream, void *addr) override |
| Writes a value to a stream. | |
Public Member Functions inherited from OGF::Serializer | |
| ~Serializer () override | |
| Serializer destructor. | |
Public Member Functions inherited from GEO::Counted | |
| void | ref () const |
| Increments the reference count. | |
| void | unref () const |
| Decrements the reference count. | |
| bool | is_shared () const |
| Check if the object is shared. | |
| int | nb_refs () const |
| Gets the number of references that point to this object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from GEO::Counted | |
| static void | ref (const Counted *counted) |
| Increments the reference count. | |
| static void | unref (const Counted *counted) |
| Decrements the reference count. | |
Protected Member Functions inherited from GEO::Counted | |
| Counted () | |
| Creates a reference counted object. | |
| virtual | ~Counted () |
| Destroys a reference counted object. | |
Generic implementation of Serializer.
| T | a type that has operator<< and operator>> |
Definition at line 206 of file serializer.h.
|
inlineoverridevirtual |
Reads a value from a stream.
| [in] | stream | the input stream |
| [out] | addr | an untyped pointer where to store the result |
| true | if the value could be successfully read |
| false | otherwise |
Implements OGF::Serializer.
Definition at line 211 of file serializer.h.
|
inlineoverridevirtual |
Writes a value to a stream.
| [out] | stream | the output stream |
| [in] | addr | an untyped pointer where to read the value from |
| true | if the value could be successfully written |
| false | otherwise |
Implements OGF::Serializer.
Definition at line 222 of file serializer.h.