Hazelcast C++ Client
|
typed_data class is a wrapper class for the serialized binary data. More...
#include <serialization.h>
Public Member Functions | |
typed_data (serialization::pimpl::data d, serialization::pimpl::SerializationService &serialization_service) | |
serialization::pimpl::object_type | get_type () const |
template<typename T > | |
boost::optional< T > | get () const |
Deserializes the underlying binary data and produces the object of type T. More... | |
const serialization::pimpl::data & | get_data () const |
Internal API. More... | |
typed_data class is a wrapper class for the serialized binary data.
It does late deserialization of the data only when the get method is called.
boost::optional< T > hazelcast::client::typed_data::get | ( | ) | const |
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 get_type 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::typed_data::get_data | ( | ) | const |
Internal API.
serialization::pimpl::object_type hazelcast::client::typed_data::get_type | ( | ) | const |