MNE-CPP
beta 1.0
|
The TEMPLATE CIRCULAR BUFFER provides a template for thread safe circular buffers. More...
#include <circularbuffer_old.h>
Public Types | |
typedef QSharedPointer< CircularBuffer_old > | SPtr |
typedef QSharedPointer< const CircularBuffer_old > | ConstSPtr |
![]() | |
typedef QSharedPointer< Buffer > | SPtr |
typedef QSharedPointer< const Buffer > | ConstSPtr |
Public Member Functions | |
CircularBuffer_old (unsigned int uiMaxNumElements) | |
~CircularBuffer_old () | |
void | push (const _Tp *pArray, unsigned int size) |
void | push (const _Tp &newElement) |
_Tp | pop () |
void | clear () |
![]() | |
Buffer (const char *type_id) | |
const char * | getTypeId () |
The TEMPLATE CIRCULAR BUFFER provides a template for thread safe circular buffers.
TEMPLATE CIRCULAR BUFFER
Definition at line 92 of file circularbuffer_old.h.
typedef QSharedPointer<const CircularBuffer_old> IOBuffer::CircularBuffer_old< _Tp >::ConstSPtr |
Const shared pointer type for CircularBuffer_old.
Definition at line 96 of file circularbuffer_old.h.
typedef QSharedPointer<CircularBuffer_old> IOBuffer::CircularBuffer_old< _Tp >::SPtr |
Shared pointer type for CircularBuffer_old.
Definition at line 95 of file circularbuffer_old.h.
IOBuffer::CircularBuffer_old< _Tp >::CircularBuffer_old | ( | unsigned int | uiMaxNumElements | ) |
Constructs a CircularBuffer.
[in] | uiMaxNumElements | length of buffer. |
Definition at line 164 of file circularbuffer_old.h.
IOBuffer::CircularBuffer_old< _Tp >::~CircularBuffer_old | ( | ) |
Destroys the CircularBuffer.
Definition at line 180 of file circularbuffer_old.h.
void IOBuffer::CircularBuffer_old< _Tp >::clear | ( | ) |
Clears the buffer.
Definition at line 236 of file circularbuffer_old.h.
|
inline |
Returns the first element (first in first out).
Definition at line 214 of file circularbuffer_old.h.
|
inline |
Adds a whole array at the end buffer.
[in] | pArray | pointer to an Array which should be apend to the end. |
[in] | size | number of elements containing the array. |
Definition at line 191 of file circularbuffer_old.h.
|
inline |
Adds an element at the end of the buffer.
[in] | newElement | pointer to an Array which should be apend to the end. |
Definition at line 203 of file circularbuffer_old.h.