i6engine  1.0
i6e::utils::exceptions::ExceptionQueue Class Reference

Implements a queue that supports multiple producers but only one consumer. More...

#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/ExceptionQueue.h>

Public Member Functions

void enqueue (const loginfo &data)
 Enqueues data. More...
 
bool isEmpty () const
 Returns true if the queue is empty. More...
 
loginfo dequeue ()
 Removes the first element in the queue. More...
 
void addCallback (const std::function< void(void)> &callback)
 add callback to queue being called when a new entry is pushed More...
 

Friends

class Singleton< ExceptionQueue >
 

Additional Inherited Members

- Static Public Member Functions inherited from i6e::utils::Singleton< T, Dependencies >
static T * GetSingletonPtr ()
 Returns a pointer to the Singleton class. More...
 
static T & GetSingleton ()
 Returns a reference to the Singleton class. More...
 
- Protected Member Functions inherited from i6e::utils::Singleton< T, Dependencies >
 Singleton ()
 
virtual ~Singleton ()
 

Detailed Description

Implements a queue that supports multiple producers but only one consumer.

Implements a queue that supports multiple producers but only one consumer for exceptions.

Definition at line 46 of file ExceptionQueue.h.

Member Function Documentation

void i6e::utils::exceptions::ExceptionQueue::addCallback ( const std::function< void(void)> &  callback)

add callback to queue being called when a new entry is pushed

loginfo i6e::utils::exceptions::ExceptionQueue::dequeue ( )

Removes the first element in the queue.

void i6e::utils::exceptions::ExceptionQueue::enqueue ( const loginfo data)

Enqueues data.

Parameters
[in]dataData to be queued
bool i6e::utils::exceptions::ExceptionQueue::isEmpty ( ) const

Returns true if the queue is empty.

Returns
True if the queue is empty

Friends And Related Function Documentation

friend class Singleton< ExceptionQueue >
friend

Definition at line 47 of file ExceptionQueue.h.


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