![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
ClassDefinition defines a class schema for portable classes. More...
#include <serialization.h>
Public Member Functions | |
FieldDefinition () | |
Constructor. | |
FieldDefinition (int, const std::string &, field_type const &type, int version) | |
Constructor. | |
FieldDefinition (int index, const std::string &field_name, field_type const &type, int factory_id, int class_id, int version) | |
Constructor. | |
const field_type & | get_type () const |
std::string | get_name () const |
int | get_index () const |
int | get_factory_id () const |
int | get_class_id () const |
void | write_data (pimpl::data_output &data_output) |
void | read_data (object_data_input &data_input) |
bool | operator== (const FieldDefinition &rhs) const |
bool | operator!= (const FieldDefinition &rhs) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const FieldDefinition &definition) |
ClassDefinition defines a class schema for portable classes.
It allows to query field names, types, class id etc. It can be created manually using ClassDefinitionBuilder or on demand during serialization phase.
Definition at line 504 of file serialization.h.
int hazelcast::client::serialization::FieldDefinition::get_class_id | ( | ) | const |
Definition at line 315 of file serialization.cpp.
int hazelcast::client::serialization::FieldDefinition::get_factory_id | ( | ) | const |
Definition at line 309 of file serialization.cpp.
int hazelcast::client::serialization::FieldDefinition::get_index | ( | ) | const |
std::string hazelcast::client::serialization::FieldDefinition::get_name | ( | ) | const |
Definition at line 297 of file serialization.cpp.
const field_type & hazelcast::client::serialization::FieldDefinition::get_type | ( | ) | const |
void hazelcast::client::serialization::FieldDefinition::read_data | ( | object_data_input & | data_input | ) |
dataInput | reads fieldDefinition from given dataOutput |
Definition at line 331 of file serialization.cpp.
void hazelcast::client::serialization::FieldDefinition::write_data | ( | pimpl::data_output & | data_output | ) |
dataOutput | writes fieldDefinition to given dataOutput |
Definition at line 321 of file serialization.cpp.