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

A collection of nodes. More...

Public Member Functions

 NodeContainer ()
 Creates a node container. More...
 
 NodeContainer (size_t maxNodes, const supplier< Timestamp > &timeSupplier)
 Creates a node container that can contain at most maxNodes nodes around a custom time supplier (timeSupplier). More...
 
 ~NodeContainer ()
 Destroys a node container. More...
 
NodeContainerView view () const
 Gets a read only view of the nodes. More...
 
NodeContainerModifier modifier ()
 Gets a write only view of the nodes. More...
 

Private Attributes

std::unique_ptr< NodeContainerDatam_pImpl
 
utils::SpinReaderWriterLock m_lock
 

Detailed Description

A collection of nodes.

Constructor & Destructor Documentation

◆ NodeContainer() [1/2]

catapult::ionet::NodeContainer::NodeContainer ( )

Creates a node container.

◆ NodeContainer() [2/2]

catapult::ionet::NodeContainer::NodeContainer ( size_t  maxNodes,
const supplier< Timestamp > &  timeSupplier 
)

Creates a node container that can contain at most maxNodes nodes around a custom time supplier (timeSupplier).

◆ ~NodeContainer()

catapult::ionet::NodeContainer::~NodeContainer ( )
default

Destroys a node container.

Member Function Documentation

◆ modifier()

NodeContainerModifier catapult::ionet::NodeContainer::modifier ( )

Gets a write only view of the nodes.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ view()

NodeContainerView catapult::ionet::NodeContainer::view ( ) const

Gets a read only view of the nodes.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_lock

utils::SpinReaderWriterLock catapult::ionet::NodeContainer::m_lock
mutableprivate

◆ m_pImpl

std::unique_ptr<NodeContainerData> catapult::ionet::NodeContainer::m_pImpl
private

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