A Struct has a StructSet as its parent.
More...
#include <Struct.hpp>
Inherits internal::DataSerializableFixedId_t< internal::DSFid::Struct >.
A Struct has a StructSet as its parent.
It contains the field values returned after executing a Query obtained from a QueryService which in turn is obtained from a Cache.
◆ Struct()
| apache::geode::client::Struct::Struct |
( |
StructSet * |
ssPtr, |
|
|
std::vector< std::shared_ptr< Serializable > > & |
fieldValues |
|
) |
| |
Constructor - meant only for internal use.
◆ createDeserializable()
| static std::shared_ptr< Serializable > apache::geode::client::Struct::createDeserializable |
( |
| ) |
|
|
static |
Factory function for registration of Struct.
◆ getFieldName()
| virtual const std::string & apache::geode::client::Struct::getFieldName |
( |
const int32_t |
index | ) |
const |
|
virtual |
Returns the name of the field corresponding to the index number in the Struct.
- Exceptions
-
| std::out_of_range | if index is not found |
◆ getStructSet()
| const std::shared_ptr< StructSet > apache::geode::client::Struct::getStructSet |
( |
| ) |
const |
◆ objectSize()
| size_t apache::geode::client::Struct::objectSize |
( |
| ) |
const |
|
inlineoverride |
◆ operator[]() [1/2]
| const std::shared_ptr< Serializable > apache::geode::client::Struct::operator[] |
( |
const std::string & |
fieldName | ) |
const |
Get the field value for the given field name.
- Parameters
-
| fieldName | the name of the field whos value is required. |
- Returns
- A smart pointer to the field value.
- Exceptions
-
◆ operator[]() [2/2]
| const std::shared_ptr< Serializable > apache::geode::client::Struct::operator[] |
( |
int32_t |
index | ) |
const |
Get the field value for the given index number.
- Parameters
-
| index | the index number of the field value to get. |
- Returns
- A smart pointer to the field value or nullptr if index out of bounds.
◆ size()
| int32_t apache::geode::client::Struct::size |
( |
| ) |
const |
Get the number of field values available.
- Returns
- the number of field values available.