Public Member Functions | Private Attributes | List of all members
BasicDataBuffer Class Reference

#include <BasicDataBuffer.hpp>

Public Member Functions

 BasicDataBuffer ()
 Default constructor. More...
 
UINT32 getBufferSize ()
 
UINT32 getUsedBytes ()
 
BasicDatapopData ()
 
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
 

Detailed Description

Definition at line 18 of file BasicDataBuffer.hpp.

Constructor & Destructor Documentation

BasicDataBuffer::BasicDataBuffer ( )

Default constructor.

Definition at line 13 of file BasicDataBuffer.cpp.

BasicDataBuffer::~BasicDataBuffer ( )

Destructor.

Definition at line 23 of file BasicDataBuffer.cpp.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33