CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::PackedNodeInfo Struct Reference

Information about a node and its interactions. More...

Inheritance diagram for catapult::ionet::PackedNodeInfo:
Collaboration diagram for catapult::ionet::PackedNodeInfo:

Public Member Functions

const PackedConnectionStateConnectionStatesPtr () const
 Returns a const pointer to the first connection state contained in this node info. More...
 
PackedConnectionStateConnectionStatesPtr ()
 Returns a pointer to the first connection state contained in this node info. More...
 

Static Public Member Functions

static constexpr uint64_t CalculateRealSize (const PackedNodeInfo &nodeInfo) noexcept
 Calculates the real size of nodeInfo. More...
 

Public Attributes

Key IdentityKey
 Node unique identifier. More...
 
NodeSource Source
 Node source. More...
 
PackedNodeInteractions Interactions
 Node interactions. More...
 
uint8_t ConnectionStatesCount
 Number of connection states. More...
 
- Public Attributes inherited from catapult::model::TrailingVariableDataLayout< PackedNodeInfo, PackedConnectionState >
uint32_t Size
 Data size. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from catapult::model::TrailingVariableDataLayout< PackedNodeInfo, PackedConnectionState >
static auto PayloadStart (T &derived)
 Gets the start of the variable data part of derived. More...
 
static const PackedConnectionState * ToTypedPointer (const uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 
static PackedConnectionState * ToTypedPointer (uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 

Detailed Description

Information about a node and its interactions.

Member Function Documentation

◆ CalculateRealSize()

static constexpr uint64_t catapult::ionet::PackedNodeInfo::CalculateRealSize ( const PackedNodeInfo nodeInfo)
inlinestaticconstexprnoexcept

Calculates the real size of nodeInfo.

◆ ConnectionStatesPtr() [1/2]

PackedConnectionState* catapult::ionet::PackedNodeInfo::ConnectionStatesPtr ( )
inline

Returns a pointer to the first connection state contained in this node info.

Here is the call graph for this function:

◆ ConnectionStatesPtr() [2/2]

const PackedConnectionState* catapult::ionet::PackedNodeInfo::ConnectionStatesPtr ( ) const
inline

Returns a const pointer to the first connection state contained in this node info.

Here is the call graph for this function:

Member Data Documentation

◆ ConnectionStatesCount

uint8_t catapult::ionet::PackedNodeInfo::ConnectionStatesCount

Number of connection states.

◆ IdentityKey

Key catapult::ionet::PackedNodeInfo::IdentityKey

Node unique identifier.

◆ Interactions

PackedNodeInteractions catapult::ionet::PackedNodeInfo::Interactions

Node interactions.

◆ Source

NodeSource catapult::ionet::PackedNodeInfo::Source

Node source.


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