MNE-CPP
beta 1.0
|
The TEMPLATE CIRCULAR BUFFER provides a template for thread safe circular buffers. More...
#include <circularmultichannelbuffer_old.h>
Public Types | |
typedef QSharedPointer< CircularMultiChannelBuffer_old > | SPtr |
typedef QSharedPointer< const CircularMultiChannelBuffer_old > | ConstSPtr |
![]() | |
typedef QSharedPointer< Buffer > | SPtr |
typedef QSharedPointer< const Buffer > | ConstSPtr |
Public Member Functions | |
CircularMultiChannelBuffer_old (unsigned int uiNumChannels, unsigned int uiMaxNumElements) | |
~CircularMultiChannelBuffer_old () | |
void | init () |
void | push (unsigned int uiChannel, const _Tp *pArray, unsigned int size) |
void | push (unsigned int uiChannel, const _Tp &newElement) |
void | push (const QVector< _Tp > &newElements) |
QVector< _Tp > | pop () |
_Tp | pop (unsigned int uiChannel) |
int | numChannels () |
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 90 of file circularmultichannelbuffer_old.h.
typedef QSharedPointer<const CircularMultiChannelBuffer_old> IOBuffer::CircularMultiChannelBuffer_old< _Tp >::ConstSPtr |
Const shared pointer type for CircularMultiChannelBuffer_old.
Definition at line 96 of file circularmultichannelbuffer_old.h.
typedef QSharedPointer<CircularMultiChannelBuffer_old> IOBuffer::CircularMultiChannelBuffer_old< _Tp >::SPtr |
Shared pointer type for CircularMultiChannelBuffer_old.
Definition at line 95 of file circularmultichannelbuffer_old.h.
IOBuffer::CircularMultiChannelBuffer_old< _Tp >::CircularMultiChannelBuffer_old | ( | unsigned int | uiNumChannels, |
unsigned int | uiMaxNumElements | ||
) |
Constructs a CircularMultiChannelBuffer_old.
[in] | uiChannel | selected channel. |
[in] | uiMaxNumElements | length of buffer. |
Definition at line 191 of file circularmultichannelbuffer_old.h.
IOBuffer::CircularMultiChannelBuffer_old< _Tp >::~CircularMultiChannelBuffer_old | ( | ) |
Destroys the CircularMultiChannelBuffer_old.
Definition at line 203 of file circularmultichannelbuffer_old.h.
void IOBuffer::CircularMultiChannelBuffer_old< _Tp >::clear | ( | ) |
Clears the buffer.
Definition at line 291 of file circularmultichannelbuffer_old.h.
void IOBuffer::CircularMultiChannelBuffer_old< _Tp >::init | ( | ) |
Initializes the buffer.
Definition at line 213 of file circularmultichannelbuffer_old.h.
|
inline |
Returns the number of channels.
Definition at line 230 of file circularmultichannelbuffer_old.h.
|
inline |
Returns the first element (first in first out).
Definition at line 267 of file circularmultichannelbuffer_old.h.
|
inline |
Returns the first element (first in first out) of a specific channel.
[in] | uiChannel | selected channel. |
Definition at line 282 of file circularmultichannelbuffer_old.h.
|
inline |
Adds a whole array at the end buffer.
[in] | uiChannel | selected channel. |
[in] | pArray | pointer to an Array which should be append to the end. |
[in] | size | number of elements containing the array. |
Definition at line 239 of file circularmultichannelbuffer_old.h.
|
inline |
Adds an element at the end of the buffer.
[in] | uiChannel | selected channel. |
[in] | newElement | pointer to an Array which should be append to the end. |
Definition at line 248 of file circularmultichannelbuffer_old.h.
|
inline |
Adds an element at the end of the buffer.
[in] | newElements | vector which should be added to the channels. |
Definition at line 257 of file circularmultichannelbuffer_old.h.