MNE-CPP
beta 1.0
|
The circular matrix buffer. More...
#include <circularmatrixbuffer.h>
Public Types | |
typedef QSharedPointer< CircularMatrixBuffer > | SPtr |
typedef QSharedPointer< const CircularMatrixBuffer > | ConstSPtr |
![]() | |
typedef QSharedPointer< Buffer > | SPtr |
typedef QSharedPointer< const Buffer > | ConstSPtr |
Public Member Functions | |
CircularMatrixBuffer (unsigned int uiMaxNumMatrices, unsigned int uiRows, unsigned int uiCols) | |
~CircularMatrixBuffer () | |
void | push (const Matrix< _Tp, Dynamic, Dynamic > *pMatrix) |
Matrix< _Tp, Dynamic, Dynamic > | pop () |
void | clear () |
quint32 | size () const |
quint32 | rows () const |
quint32 | cols () const |
void | pause (bool) |
bool | releaseFromPop () |
bool | releaseFromPush () |
![]() | |
Buffer (const char *type_id) | |
const char * | getTypeId () |
The circular matrix buffer.
Circular Matrix buffer provides a template for thread safe circular matrix buffers.
Definition at line 93 of file circularmatrixbuffer.h.
typedef QSharedPointer<const CircularMatrixBuffer> IOBuffer::CircularMatrixBuffer< _Tp >::ConstSPtr |
Const shared pointer type for CircularMatrixBuffer.
Definition at line 97 of file circularmatrixbuffer.h.
typedef QSharedPointer<CircularMatrixBuffer> IOBuffer::CircularMatrixBuffer< _Tp >::SPtr |
Shared pointer type for CircularMatrixBuffer.
Definition at line 96 of file circularmatrixbuffer.h.
|
explicit |
Constructs a CircularMatrixBuffer. length of buffer = uiMaxNumMatrizes*rows*cols
[in] | uiMaxNumMatrices | length of buffer. |
[in] | uiRows | Number of rows. |
[in] | uiCols | Number of columns. |
Definition at line 205 of file circularmatrixbuffer.h.
IOBuffer::CircularMatrixBuffer< _Tp >::~CircularMatrixBuffer | ( | ) |
Destroys the CircularBuffer.
Definition at line 225 of file circularmatrixbuffer.h.
void IOBuffer::CircularMatrixBuffer< _Tp >::clear | ( | ) |
Clears the buffer.
Definition at line 290 of file circularmatrixbuffer.h.
|
inline |
Cols of the stored matrices of the buffer.
Definition at line 323 of file circularmatrixbuffer.h.
|
inline |
Pauses the buffer. Skpis any incoming matrices and only pops zero matrices.
Definition at line 332 of file circularmatrixbuffer.h.
|
inline |
Returns the first matrix (first in first out).
Definition at line 257 of file circularmatrixbuffer.h.
|
inline |
Adds a whole matrix at the end buffer.
[in] | pMatrix | pointer to a Matrix which should be apend to the end. |
Definition at line 236 of file circularmatrixbuffer.h.
|
inline |
Releases the circular buffer from the acquire statement in the pop() function.
[out] | bool | returns true if resources were freed so that the aquire statement in the pop function can release, otherwise false. |
Definition at line 341 of file circularmatrixbuffer.h.
|
inline |
Releases the circular buffer from the acquire statement in the push() function.
[out] | bool | returns true if resources were freed so that the aquire statement in the push function can release, otherwise false. |
Definition at line 363 of file circularmatrixbuffer.h.
|
inline |
Rows of the stored matrices of the buffer.
Definition at line 314 of file circularmatrixbuffer.h.
|
inline |
Size of the buffer.
Definition at line 305 of file circularmatrixbuffer.h.