Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::serialization::Serializer< T > Class Template Referenceabstract

#include <Serializer.h>

+ Inheritance diagram for hazelcast::client::serialization::Serializer< T >:

Public Member Functions

virtual void write (ObjectDataOutput &out, const T &object)=0
 This method writes object to ObjectDataOutput. More...
 
virtual void read (ObjectDataInput &in, T &object)=0
 Reads object from objectDataInputStream. More...
 
virtual void * read (ObjectDataInput &in)
 This is an internal method for backward compatibility. More...
 
virtual void write (ObjectDataOutput &out, const void *object)
 This method writes object to ObjectDataOutput. More...
 
- Public Member Functions inherited from hazelcast::client::serialization::SerializerBase
virtual int32_t getHazelcastTypeId () const =0
 unique type id for this serializer. More...
 

Detailed Description

template<typename T>
class hazelcast::client::serialization::Serializer< T >

Deprecated:
Please use StreamSerializer for custom Serialization

Member Function Documentation

template<typename T >
virtual void hazelcast::client::serialization::Serializer< T >::read ( ObjectDataInput in,
T &  object 
)
pure virtual

Reads object from objectDataInputStream.

Parameters
inObjectDataInput stream that object will read from
objectread object from input data
template<typename T >
virtual void* hazelcast::client::serialization::Serializer< T >::read ( ObjectDataInput in)
inlinevirtual

This is an internal method for backward compatibility.

Parameters
inObjectDataInput stream that object will read from
Returns
read object from input data

Implements hazelcast::client::serialization::StreamSerializer.

template<typename T >
virtual void hazelcast::client::serialization::Serializer< T >::write ( ObjectDataOutput out,
const T &  object 
)
pure virtual

This method writes object to ObjectDataOutput.

Parameters
outObjectDataOutput stream that object will be written to
objectthat will be written to out
template<typename T >
virtual void hazelcast::client::serialization::Serializer< T >::write ( ObjectDataOutput out,
const void *  object 
)
inlinevirtual

This method writes object to ObjectDataOutput.

Parameters
outObjectDataOutput stream that object will be written to
objectthat will be written to out

Implements hazelcast::client::serialization::StreamSerializer.


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