CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::PacketPayloadFactory Class Reference

A factory for creating common packet payloads. More...

Static Public Member Functions

template<typename TEntity >
static PacketPayload FromEntity (PacketType type, const std::shared_ptr< TEntity > &pEntity)
 Creates a packet payload with the specified packet type around a single entity (pEntity). More...
 
template<typename TEntity >
static PacketPayload FromEntities (PacketType type, const std::vector< std::shared_ptr< TEntity >> &entities)
 Creates a packet payload with the specified packet type around multiple entities. More...
 
template<typename TStructure >
static PacketPayload FromFixedSizeRange (PacketType type, model::EntityRange< TStructure > &&range)
 Creates a packet payload with the specified packet type around a fixed size structure range. More...
 

Detailed Description

A factory for creating common packet payloads.

Member Function Documentation

◆ FromEntities()

template<typename TEntity >
static PacketPayload catapult::ionet::PacketPayloadFactory::FromEntities ( PacketType  type,
const std::vector< std::shared_ptr< TEntity >> &  entities 
)
inlinestatic

Creates a packet payload with the specified packet type around multiple entities.

Here is the call graph for this function:

◆ FromEntity()

template<typename TEntity >
static PacketPayload catapult::ionet::PacketPayloadFactory::FromEntity ( PacketType  type,
const std::shared_ptr< TEntity > &  pEntity 
)
inlinestatic

Creates a packet payload with the specified packet type around a single entity (pEntity).

Here is the caller graph for this function:

◆ FromFixedSizeRange()

template<typename TStructure >
static PacketPayload catapult::ionet::PacketPayloadFactory::FromFixedSizeRange ( PacketType  type,
model::EntityRange< TStructure > &&  range 
)
inlinestatic

Creates a packet payload with the specified packet type around a fixed size structure range.

Here is the call graph for this function:

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