ITS
|
#include <LocationServicePacketBuffer.h>
Public Member Functions | |
LocationServicePacketBuffer () | |
LocationServicePacketBuffer Default constructor. More... | |
LocationServicePacketBuffer (const LocationServicePacketBuffer &other) | |
LocationServicePacketBuffer Copy constructor. More... | |
void | addPacket (GnAddr destination, gnDataRequest_t packet, quint32 timestamp) |
addPacket Add packet to the buffer. More... | |
bool | find (GnAddr destination) |
find Search packet in the buffer. More... | |
void | erase (GnAddr destination) |
find Remove packet in the buffer. More... | |
void | remove (LocationServicePacketEntry lspe) |
find Remove packet in the buffer. More... | |
void | clear () |
clear Clear the buffer. More... | |
QList< LocationServicePacketEntry > | lsPacketBuffer () |
lsPacketBuffer The LS buffer getter. More... | |
Public Attributes | |
QMutex * | m_mutex |
Static Public Attributes | |
static int | nbLSForwardingPacketQueued = 0 |
Private Attributes | |
QList< LocationServicePacketEntry > | m_lsPacketBuffer |
Definition at line 16 of file LocationServicePacketBuffer.h.
LocationServicePacketBuffer::LocationServicePacketBuffer | ( | ) |
LocationServicePacketBuffer Default constructor.
Definition at line 5 of file LocationServicePacketBuffer.cpp.
References m_mutex.
LocationServicePacketBuffer::LocationServicePacketBuffer | ( | const LocationServicePacketBuffer & | other | ) |
LocationServicePacketBuffer Copy constructor.
other | The LocationServicePacketBuffer to copy. |
Definition at line 10 of file LocationServicePacketBuffer.cpp.
References m_lsPacketBuffer, and m_mutex.
void LocationServicePacketBuffer::addPacket | ( | GnAddr | destination, |
gnDataRequest_t | packet, | ||
quint32 | timestamp | ||
) |
addPacket Add packet to the buffer.
destination | The destination. |
packet | The packet. |
timestamp | Timestamp of the packet. |
Definition at line 16 of file LocationServicePacketBuffer.cpp.
References itsGnLocationServicePacketBufferSize, m_lsPacketBuffer, m_mutex, and nbLSForwardingPacketQueued.
Referenced by GeoNet::sendLsRequest().
void LocationServicePacketBuffer::clear | ( | ) |
clear Clear the buffer.
Definition at line 90 of file LocationServicePacketBuffer.cpp.
References m_lsPacketBuffer, m_mutex, and nbLSForwardingPacketQueued.
Referenced by GeoNet::utInitialize().
void LocationServicePacketBuffer::erase | ( | GnAddr | destination | ) |
find Remove packet in the buffer.
destination | The packet to remove. |
Definition at line 58 of file LocationServicePacketBuffer.cpp.
References m_lsPacketBuffer, m_mutex, and nbLSForwardingPacketQueued.
Referenced by GeoNet::lsRetransmit().
bool LocationServicePacketBuffer::find | ( | GnAddr | destination | ) |
find Search packet in the buffer.
destination | The packet to find. |
Definition at line 37 of file LocationServicePacketBuffer.cpp.
References m_lsPacketBuffer, and m_mutex.
|
inline |
lsPacketBuffer The LS buffer getter.
Definition at line 67 of file LocationServicePacketBuffer.h.
References m_lsPacketBuffer.
Referenced by GeoNet::flushLSPB().
void LocationServicePacketBuffer::remove | ( | LocationServicePacketEntry | lspe | ) |
find Remove packet in the buffer.
destination | The packet to remove. |
Definition at line 79 of file LocationServicePacketBuffer.cpp.
References m_lsPacketBuffer, and m_mutex.
Referenced by GeoNet::flushLSPB().
|
private |
The buffer.
Definition at line 70 of file LocationServicePacketBuffer.h.
Referenced by addPacket(), clear(), erase(), find(), LocationServicePacketBuffer(), lsPacketBuffer(), and remove().
QMutex* LocationServicePacketBuffer::m_mutex |
Mutex used to look in thebuffer.
Definition at line 61 of file LocationServicePacketBuffer.h.
Referenced by addPacket(), clear(), erase(), find(), LocationServicePacketBuffer(), and remove().
|
static |
Number of entries in the buffer.
Definition at line 54 of file LocationServicePacketBuffer.h.
Referenced by addPacket(), clear(), erase(), and GeoNet::flushLSPB().