Main Page | Class List | File List | Class Members

Rha::BoundedQueue< T, C >::Configurator Class Reference

Bounded queue configurator. More...

#include <BoundedQueue.hpp>

List of all members.

Public Types

enum  Defaults { defaultUpperBound = 1000 }

Public Member Functions

 Configurator ()
 Constructs Configurator with default values used by BoundedQueue.

unsigned int upperBound () const
 Returns current value of upper bound configuration parameter.

ConfiguratorupperBound (unsigned int limit)
 Sets the value of upper bound configuration parameter.


Detailed Description

template<class T, class C = std::deque<T>>
class Rha::BoundedQueue< T, C >::Configurator

Bounded queue configurator.

Use Configurator class to pass custom configuration parameters when creating objects of type BoundedQueue. Instance of Configurator class can directly be passed to Scheduler's constructor to customize the behavior of the queue. BoundedQueue uses the following default values:


Constructor & Destructor Documentation

template<class T, class C = std::deque<T>>
Rha::BoundedQueue< T, C >::Configurator::Configurator  )  [inline]
 

Constructs Configurator with default values used by BoundedQueue.

Exceptions:
doesn't throw


Member Function Documentation

template<class T, class C = std::deque<T>>
Configurator& Rha::BoundedQueue< T, C >::Configurator::upperBound unsigned int  limit  )  [inline]
 

Sets the value of upper bound configuration parameter.

Exceptions:
doesn't throw

template<class T, class C = std::deque<T>>
unsigned int Rha::BoundedQueue< T, C >::Configurator::upperBound  )  const [inline]
 

Returns current value of upper bound configuration parameter.

Exceptions:
doesn't throw


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