Apache Ignite C++
Public Member Functions | List of all members
ignite::binary::BinaryType< T > Struct Template Reference

Binary type structure. More...

#include <binary_type.h>

Public Member Functions

int32_t GetTypeId ()
 Get binary object type ID. More...
 
std::string GetTypeName ()
 Get binary object type name. More...
 
int32_t GetFieldId (const char *name)
 Get binary object field ID. More...
 
int32_t GetHashCode (const T &obj)
 Get binary object hash code. More...
 
void Write (BinaryWriter &writer, const T &obj)
 Write binary object. More...
 
Read (BinaryReader &reader)
 Read binary object. More...
 
bool IsNull (const T &obj)
 Check whether passed binary object should be interpreted as NULL. More...
 
GetNull ()
 Get NULL value for the given binary type. More...
 

Detailed Description

template<typename T>
struct ignite::binary::BinaryType< T >

Binary type structure.

Defines a set of functions required for type to be serialized and deserialized.

Member Function Documentation

template<typename T>
int32_t ignite::binary::BinaryType< T >::GetFieldId ( const char *  name)
inline

Get binary object field ID.

Parameters
nameField name.
Returns
Field ID.
template<typename T>
int32_t ignite::binary::BinaryType< T >::GetHashCode ( const T &  obj)
inline

Get binary object hash code.

Parameters
objBinary object.
Returns
Hash code.
template<typename T>
T ignite::binary::BinaryType< T >::GetNull ( )
inline

Get NULL value for the given binary type.

Returns
NULL value.
template<typename T>
int32_t ignite::binary::BinaryType< T >::GetTypeId ( )
inline

Get binary object type ID.

Returns
Type ID.
template<typename T>
std::string ignite::binary::BinaryType< T >::GetTypeName ( )
inline

Get binary object type name.

Returns
Type name.
template<typename T>
bool ignite::binary::BinaryType< T >::IsNull ( const T &  obj)
inline

Check whether passed binary object should be interpreted as NULL.

Parameters
objBinary object to test.
Returns
True if binary object should be interpreted as NULL.
template<typename T>
T ignite::binary::BinaryType< T >::Read ( BinaryReader reader)
inline

Read binary object.

Parameters
readerReader.
Returns
Object.
template<typename T>
void ignite::binary::BinaryType< T >::Write ( BinaryWriter writer,
const T &  obj 
)
inline

Write binary object.

Parameters
writerWriter.
objObject.

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