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

A node and packet io pair. More...

Collaboration diagram for catapult::ionet::NodePacketIoPair:

Public Member Functions

 NodePacketIoPair ()
 Creates an empty pair. More...
 
 NodePacketIoPair (const Node &node, const std::shared_ptr< PacketIo > &pPacketIo)
 Creates a pair around node and pPacketIo. More...
 
const Nodenode () const
 Gets the node. More...
 
const std::shared_ptr< PacketIo > & io () const
 Gets the io. More...
 
 operator bool () const
 Returns true if this pair is not empty. More...
 

Private Attributes

Node m_node
 
std::shared_ptr< PacketIom_pPacketIo
 

Detailed Description

A node and packet io pair.

Constructor & Destructor Documentation

◆ NodePacketIoPair() [1/2]

catapult::ionet::NodePacketIoPair::NodePacketIoPair ( )
inline

Creates an empty pair.

◆ NodePacketIoPair() [2/2]

catapult::ionet::NodePacketIoPair::NodePacketIoPair ( const Node node,
const std::shared_ptr< PacketIo > &  pPacketIo 
)
inlineexplicit

Creates a pair around node and pPacketIo.

Member Function Documentation

◆ io()

const std::shared_ptr<PacketIo>& catapult::ionet::NodePacketIoPair::io ( ) const
inline

Gets the io.

◆ node()

const Node& catapult::ionet::NodePacketIoPair::node ( ) const
inline

Gets the node.

◆ operator bool()

catapult::ionet::NodePacketIoPair::operator bool ( ) const
inlineexplicit

Returns true if this pair is not empty.

Member Data Documentation

◆ m_node

Node catapult::ionet::NodePacketIoPair::m_node
private

◆ m_pPacketIo

std::shared_ptr<PacketIo> catapult::ionet::NodePacketIoPair::m_pPacketIo
private

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