Implementation of Serializer for pointers.
More...
#include <OGF/gom/services/serializer.h>
|
| 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.
|
| |
|
| ~Serializer () override |
| | Serializer destructor.
|
| |
| 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.
|
| |
|
| static void | ref (const Counted *counted) |
| | Increments the reference count.
|
| |
| static void | unref (const Counted *counted) |
| | Decrements the reference count.
|
| |
| | Counted () |
| | Creates a reference counted object.
|
| |
| virtual | ~Counted () |
| | Destroys a reference counted object.
|
| |
Implementation of Serializer for pointers.
Definition at line 145 of file serializer.h.
◆ serialize_read()
| bool OGF::PointerSerializer::serialize_read |
( |
std::istream & |
stream, |
|
|
void * |
addr |
|
) |
| |
|
overridevirtual |
Reads a value from a stream.
- Parameters
-
| [in] | stream | the input stream |
| [out] | addr | an untyped pointer where to store the result |
- Return values
-
| true | if the value could be successfully read |
| false | otherwise |
Implements OGF::Serializer.
◆ serialize_write()
| bool OGF::PointerSerializer::serialize_write |
( |
std::ostream & |
stream, |
|
|
void * |
addr |
|
) |
| |
|
overridevirtual |
Writes a value to a stream.
- Parameters
-
| [out] | stream | the output stream |
| [in] | addr | an untyped pointer where to read the value from |
- Return values
-
| true | if the value could be successfully written |
| false | otherwise |
Implements OGF::Serializer.
The documentation for this class was generated from the following file: