CatapultServer  v0.5.0.1 (Elephant)
catapult::disruptor::DisruptorBarriers Class Reference

Container for disruptor barriers. More...

Public Member Functions

 DisruptorBarriers (size_t levelsCount)
 Creates levelsCount barriers with consecutive levels. More...
 
size_t size () const
 Returns number of barriers. More...
 
const DisruptorBarrieroperator[] (size_t level) const
 Returns a barrier at a given level. More...
 
DisruptorBarrieroperator[] (size_t level)
 Returns a barrier at a given level. More...
 

Private Attributes

std::vector< std::unique_ptr< DisruptorBarrier > > m_barriers
 Holds all barriers (barrier level is an index). More...
 

Detailed Description

Container for disruptor barriers.

Constructor & Destructor Documentation

◆ DisruptorBarriers()

catapult::disruptor::DisruptorBarriers::DisruptorBarriers ( size_t  levelsCount)
explicit

Creates levelsCount barriers with consecutive levels.

Member Function Documentation

◆ operator[]() [1/2]

DisruptorBarrier& catapult::disruptor::DisruptorBarriers::operator[] ( size_t  level)
inline

Returns a barrier at a given level.

◆ operator[]() [2/2]

const DisruptorBarrier& catapult::disruptor::DisruptorBarriers::operator[] ( size_t  level) const
inline

Returns a barrier at a given level.

◆ size()

size_t catapult::disruptor::DisruptorBarriers::size ( ) const
inline

Returns number of barriers.

Here is the caller graph for this function:

Member Data Documentation

◆ m_barriers

std::vector<std::unique_ptr<DisruptorBarrier> > catapult::disruptor::DisruptorBarriers::m_barriers
private

Holds all barriers (barrier level is an index).


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