20#ifndef GEODE_PDXWRAPPER_H_
21#define GEODE_PDXWRAPPER_H_
27#include "PdxSerializable.hpp"
28#include "PdxSerializer.hpp"
29#include "internal/geode_base.hpp"
56 PdxWrapper(std::shared_ptr<void> userObject, std::string className);
83 std::shared_ptr<void> m_userObject;
84 std::string m_className;
Represents a cacheable key.
Definition CacheableKey.hpp:40
A PdxReader will be passed to PdxSerializable.fromData or during deserialization of a PDX.
Definition PdxReader.hpp:58
An interface for objects whose contents can be serialized as PDX types.
Definition PdxSerializable.hpp:41
The PdxWrapper class allows domain classes to be used in Region operations.
Definition PdxWrapper.hpp:46
const std::string & getClassName() const override
Get the Type for the Object.
int32_t hashcode() const override
return the hashcode for this key.
void fromData(PdxReader &input) override
Deserialize this object.
void toData(PdxWriter &output) const override
Serialize this object in Geode PDX format.
std::string toString() const override
Display this object as 'string', which depends on the implementation in the subclasses.
bool operator==(const CacheableKey &other) const override
return true if this key matches other.
std::shared_ptr< void > getObject()
Returns the pointer to the user object which is deserialized with a PdxSerializer.
PdxWrapper(std::shared_ptr< void > userObject, std::string className)
Constructor which takes the address of the user object to contain for PDX serialization.
A PdxWriter will be passed to PdxSerializable.toData when it is serializing the domain class.
Definition PdxWriter.hpp:41