23 #ifndef _IGNITE_BINARY_BINARY_OBJECT 24 #define _IGNITE_BINARY_BINARY_OBJECT 28 #include <ignite/impl/binary/binary_object_impl.h> 36 class BinaryWriterImpl;
50 friend class ignite::impl::binary::BinaryWriterImpl;
58 BinaryObject(
const impl::binary::BinaryObjectImpl& impl) :
72 BinaryObject(impl::interop::InteropMemory& mem, int32_t start,
73 impl::binary::BinaryIdResolver* idRslvr, impl::binary::BinaryTypeManager* metaMgr) :
74 impl(mem, start, idRslvr, metaMgr)
114 return impl.Deserialize<T>();
128 return impl.GetField<T>(name);
140 return impl.HasField(name);
145 impl::binary::BinaryObjectImpl impl;
150 inline BinaryObject BinaryObject::GetField(
const char* name)
const 152 return BinaryObject(impl.GetField<impl::binary::BinaryObjectImpl>(name));
157 #endif //_IGNITE_BINARY_BINARY_OBJECT T GetField(const char *name) const
Get field.
Definition: binary_object.h:126
BinaryObject(const BinaryObject &other)
Copy constructor.
Definition: binary_object.h:85
T Deserialize() const
Deserialize object.
Definition: binary_object.h:112
BinaryObject & operator=(const BinaryObject &other)
Assignment operator.
Definition: binary_object.h:97
bool HasField(const char *name) const
Check if the binary object has the specified field.
Definition: binary_object.h:138
Binary object.
Definition: binary_object.h:48
Apache Ignite API.
Definition: cache.h:48