Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Public Member Functions | Private Attributes
mrpt::synch::MT_buffer Class Reference

Detailed Description

This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.

Definition at line 23 of file MT_buffer.h.

#include <mrpt/synch/MT_buffer.h>

Public Member Functions

 MT_buffer ()
 
virtual ~MT_buffer ()
 
void clear ()
 
size_t size ()
 
void appendData (const vector_byte &d)
 
void readAndClear (vector_byte &d)
 
void read (vector_byte &d)
 

Private Attributes

vector_byte m_data
 
CCriticalSection m_cs
 

Constructor & Destructor Documentation

mrpt::synch::MT_buffer::MT_buffer ( )
inline

Definition at line 30 of file MT_buffer.h.

virtual mrpt::synch::MT_buffer::~MT_buffer ( )
inlinevirtual

Definition at line 32 of file MT_buffer.h.

Member Function Documentation

void mrpt::synch::MT_buffer::appendData ( const vector_byte d)
inline
void mrpt::synch::MT_buffer::clear ( )
inline
void mrpt::synch::MT_buffer::read ( vector_byte d)
inline
Parameters
dRead the whole buffer.

Definition at line 66 of file MT_buffer.h.

References mrpt::synch::CCriticalSection::enter(), mrpt::synch::CCriticalSection::leave(), m_cs, and m_data.

void mrpt::synch::MT_buffer::readAndClear ( vector_byte d)
inline
size_t mrpt::synch::MT_buffer::size ( )
inline

Member Data Documentation

CCriticalSection mrpt::synch::MT_buffer::m_cs
private

Definition at line 27 of file MT_buffer.h.

Referenced by appendData(), clear(), read(), readAndClear(), and size().

vector_byte mrpt::synch::MT_buffer::m_data
private

Definition at line 26 of file MT_buffer.h.

Referenced by appendData(), clear(), read(), readAndClear(), and size().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018