Hazelcast C++ Client
|
TypedData class is a wrapper class for the serialized binary data. More...
#include <TypedData.h>
Public Member Functions | |
TypedData (std::auto_ptr< serialization::pimpl::Data > data, serialization::pimpl::SerializationService &serializationService) | |
TypedData (const TypedData &rhs) | |
TypedData & | operator= (const TypedData &rhs) |
const serialization::pimpl::ObjectType | getType () const |
template<typename T > | |
std::auto_ptr< T > | get () const |
Deserializes the underlying binary data and produces the object of type T. More... | |
const serialization::pimpl::Data * | getData () const |
Internal API. More... | |
TypedData class is a wrapper class for the serialized binary data.
It does late deserialization of the data only when the get method is called.
|
inline |
Deserializes the underlying binary data and produces the object of type T.
CAUTION: The type that you provide should be compatible with what object type is returned with the getType API, otherwise you will either get an exception of incorrectly try deserialize the binary data.
T | The type to be used for deserialization |
const serialization::pimpl::Data * hazelcast::client::TypedData::getData | ( | ) | const |
Internal API.
const serialization::pimpl::ObjectType hazelcast::client::TypedData::getType | ( | ) | const |