#include <BasicDataBuffer.hpp>
Public Member Functions | |
BasicDataBuffer () | |
Default constructor. More... | |
UINT32 | getBufferSize () |
UINT32 | getUsedBytes () |
BasicData * | popData () |
bool | pushData (BasicData *data) |
void | setLimit (UINT32 maxBytesToBeUsed) |
~BasicDataBuffer () | |
Destructor. More... | |
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.
BasicDataBuffer::BasicDataBuffer | ( | ) |
Default constructor.
Definition at line 13 of file BasicDataBuffer.cpp.
BasicDataBuffer::~BasicDataBuffer | ( | ) |
Destructor.
Definition at line 23 of file BasicDataBuffer.cpp.
UINT32 BasicDataBuffer::getBufferSize | ( | ) |
Liefert die Anzahl der aktuell gespeicherten Datensaetze.
Definition at line 56 of file BasicDataBuffer.cpp.
UINT32 BasicDataBuffer::getUsedBytes | ( | ) |
Liefert die aktuell genutzte Speichergroesse.
Definition at line 47 of file BasicDataBuffer.cpp.
BasicData * BasicDataBuffer::popData | ( | ) |
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.
|
private |
Definition at line 35 of file BasicDataBuffer.hpp.
|
private |
Definition at line 37 of file BasicDataBuffer.hpp.
|
private |
Definition at line 36 of file BasicDataBuffer.hpp.
|
private |
Definition at line 38 of file BasicDataBuffer.hpp.
|
private |
Definition at line 39 of file BasicDataBuffer.hpp.