MRPT
2.0.4
|
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
Definition at line 22 of file MT_buffer.h.
#include <mrpt/containers/MT_buffer.h>
Public Member Functions | |
MT_buffer ()=default | |
Default constructor. More... | |
virtual | ~MT_buffer ()=default |
Destructor. More... | |
void | clear () |
Empty the buffer. More... | |
size_t | size () |
Return the number of available bytes at this moment. More... | |
void | appendData (const std::vector< uint8_t > &d) |
Append new data to the stream. More... | |
void | readAndClear (std::vector< uint8_t > &d) |
Read the whole buffer and empty it. More... | |
void | read (std::vector< uint8_t > &d) |
Read the whole buffer. More... | |
Private Attributes | |
std::vector< uint8_t > | m_data |
std::mutex | m_cs |
|
default |
Default constructor.
|
virtualdefault |
Destructor.
|
inline |
Append new data to the stream.
Definition at line 52 of file MT_buffer.h.
Referenced by mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread(), and mrpt::hwdrivers::CNTRIPClient::sendBackToServer().
|
inline |
Empty the buffer.
Definition at line 34 of file MT_buffer.h.
Referenced by mrpt::hwdrivers::CNTRIPClient::close(), and mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
inline |
|
inline |
Read the whole buffer and empty it.
Definition at line 60 of file MT_buffer.h.
Referenced by mrpt::hwdrivers::CNTRIPEmitter::doProcess(), and mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
inline |
Return the number of available bytes at this moment.
Definition at line 42 of file MT_buffer.h.
Referenced by mrpt::hwdrivers::CNTRIPClient::private_ntrip_thread().
|
private |
Definition at line 26 of file MT_buffer.h.
Referenced by appendData(), clear(), read(), readAndClear(), and size().
|
private |
Definition at line 25 of file MT_buffer.h.
Referenced by appendData(), clear(), read(), readAndClear(), and size().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |