#include <Serializer.h>
Static Public Member Functions | |
| static unsigned char * | construct (A *obj, unsigned char *buf) |
| Construct an object obj from the serialized data stream (buf). | |
| static unsigned char * | serialize (const A &obj, unsigned char *buf) |
| Serialize an object obj to the stream (buf). | |
| static int | getSerializedSize (const A &obj) |
| Return the size of serialized data of obj. | |
| static bool | needsSerializing () |
| Return whether this needs serialization in communication. | |
This is default implementation and invokes A::serialize(buf), A::construct(buf), A::getSerializedSize() and A::needsSerializing().
Instances for some primitive types are written in this file. If you use other primitive types, you should make instances for them. For classes used in skeletons, i.e. dist_pair and matrix, you don't have to are also written in this file. If you use classes except those used in skeletons, i.e. dist_pair and matrix, , you should do either of the following: 1. add members A::serialize(buf), A::construct(buf), A::getSerializedSize() and A::needsSerializing() which are used in default Shadower, 2. write an instance of Shadower for the class.
Definition at line 29 of file Serializer.h.
|
||||||||||||||||
|
Construct an object obj from the serialized data stream (buf). This function just invokes A::construct(buf).
Definition at line 40 of file Serializer.h. Referenced by Serializer< std::pair< A, B > >::construct(), Serializer< const std::pair< A, B > >::construct(), and matrix< A >::construct(). |
|
||||||||||
|
Return the size of serialized data of obj. This function just invokes A::getSerializedSize().
Definition at line 63 of file Serializer.h. Referenced by Serializer< std::pair< A, B > >::getSerializedSize(), Serializer< const std::pair< A, B > >::getSerializedSize(), and matrix< A >::getSerializedSize(). |
|
|||||||||
|
Return whether this needs serialization in communication. This function just invokes A::needsSerializing().
Definition at line 72 of file Serializer.h. |
|
||||||||||||||||
|
Serialize an object obj to the stream (buf). This function just invokes A::serialize(buf).
Definition at line 52 of file Serializer.h. Referenced by Serializer< std::pair< A, B > >::serialize(), Serializer< const std::pair< A, B > >::serialize(), and matrix< A >::serialize(). |
1.4.4