|
std::ostream & | operator<< (std::ostream &os, const ClassDefinition &definition) |
|
◆ ClassDefinition()
hazelcast::client::serialization::ClassDefinition::ClassDefinition |
( |
int |
factory_id, |
|
|
int |
class_id, |
|
|
int |
version |
|
) |
| |
Constructor.
- Parameters
-
factoryId | factory id of class |
classId | id of class |
version | version of portable class |
◆ add_field_def()
void hazelcast::client::serialization::ClassDefinition::add_field_def |
( |
FieldDefinition & |
field_definition | ) |
|
Internal API.
- Parameters
-
fieldDefinition | to be added |
◆ get_class_id()
int hazelcast::client::serialization::ClassDefinition::get_class_id |
( |
| ) |
const |
◆ get_factory_id()
int hazelcast::client::serialization::ClassDefinition::get_factory_id |
( |
| ) |
const |
◆ get_field()
const FieldDefinition & hazelcast::client::serialization::ClassDefinition::get_field |
( |
const std::string & |
field_name | ) |
const |
- Parameters
-
fieldName | name of the field |
- Returns
- field definition by given name
- Exceptions
-
illegal_argument | when field not found |
◆ get_field_count()
int hazelcast::client::serialization::ClassDefinition::get_field_count |
( |
| ) |
const |
◆ get_field_type()
field_type hazelcast::client::serialization::ClassDefinition::get_field_type |
( |
const std::string & |
field_name | ) |
const |
- Parameters
-
fieldName | name of the field |
- Returns
- type of given field
- Exceptions
-
illegal_argument_exception | |
◆ get_version()
int hazelcast::client::serialization::ClassDefinition::get_version |
( |
| ) |
const |
◆ has_field()
bool hazelcast::client::serialization::ClassDefinition::has_field |
( |
const std::string & |
field_name | ) |
const |
- Parameters
-
- Returns
- true if this class definition contains a field named by given name
◆ read_data()
void hazelcast::client::serialization::ClassDefinition::read_data |
( |
object_data_input & |
data_input | ) |
|
◆ set_version_if_not_set()
void hazelcast::client::serialization::ClassDefinition::set_version_if_not_set |
( |
int |
new_version | ) |
|
Internal API.
- Parameters
-
newVersion | portable version |
◆ write_data()
void hazelcast::client::serialization::ClassDefinition::write_data |
( |
pimpl::data_output & |
data_output | ) |
|
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/serialization/serialization.h
- hazelcast/src/hazelcast/client/serialization.cpp