#include <BasicDataBuffer.hpp>
Public Member Functions | |
BasicDataBuffer () | |
Default constructor. | |
UINT32 | getBufferSize () |
UINT32 | getUsedBytes () |
BasicData * | popData () |
bool | pushData (BasicData *data) |
void | setLimit (UINT32 maxBytesToBeUsed) |
~BasicDataBuffer () | |
Destructor. | |
Private Attributes | |
bool | m_beVerbose |
std::list< BasicData * > | m_buffer |
UINT32 | m_bytesMax |
UINT32 | m_bytesUsed |
Mutex | m_mutex |
Definition at line 18 of file BasicDataBuffer.hpp.
Default constructor.
Definition at line 13 of file BasicDataBuffer.cpp.
Destructor.
Definition at line 23 of file BasicDataBuffer.cpp.
Liefert die Anzahl der aktuell gespeicherten Datensaetze.
Definition at line 56 of file BasicDataBuffer.cpp.
Liefert die aktuell genutzte Speichergroesse.
Definition at line 47 of file BasicDataBuffer.cpp.
Definition at line 99 of file BasicDataBuffer.cpp.
bool BasicDataBuffer::pushData | ( | BasicData * | data | ) |
Definition at line 67 of file BasicDataBuffer.cpp.
void BasicDataBuffer::setLimit | ( | UINT32 | maxBytesToBeUsed | ) |
Setze das Speicher-Limit, in Bytes. 0 = Kein Limit.
Falls bereits zu viel Speicher benutzt wird, wird dieser nicht sofort freigegeben, aber keine weiteren Elemente akzeptiert.
Definition at line 37 of file BasicDataBuffer.cpp.
bool BasicDataBuffer::m_beVerbose [private] |
Definition at line 35 of file BasicDataBuffer.hpp.
std::list<BasicData*> BasicDataBuffer::m_buffer [private] |
Definition at line 37 of file BasicDataBuffer.hpp.
UINT32 BasicDataBuffer::m_bytesMax [private] |
Definition at line 36 of file BasicDataBuffer.hpp.
UINT32 BasicDataBuffer::m_bytesUsed [private] |
Definition at line 38 of file BasicDataBuffer.hpp.
Mutex BasicDataBuffer::m_mutex [private] |
Definition at line 39 of file BasicDataBuffer.hpp.