ITS
RepetitionPacketBuffer Class Reference

#include <RepetitionPacketBuffer.h>

Inheritance diagram for RepetitionPacketBuffer:
[legend]
Collaboration diagram for RepetitionPacketBuffer:
[legend]

Public Slots

void erase ()
 erase Slot used to erase entry. More...
 
void sendPacketIndication (gnDataRequest_t packet)
 sendPacketIndication Slot used to notify of sending packet. More...
 

Signals

void sendPacketToGn (gnDataRequest_t packet)
 sendPacketToGn Signal used to send packet. More...
 
void killAll ()
 killAll Signal used to kill all the entries. More...
 

Public Member Functions

 RepetitionPacketBuffer ()
 RepetitionPacketBuffer Default constructor. More...
 
void addPacket (gnDataRequest_t gnDR)
 addPacket Add packet to the buffer. More...
 
void clear ()
 clear Clear the buffer. More...
 

Private Attributes

QMutex * m_mutex
 
QVector< RepetitionPacketEntry * > m_repetitionPacketBuffer
 

Detailed Description

Definition at line 16 of file RepetitionPacketBuffer.h.

Constructor & Destructor Documentation

◆ RepetitionPacketBuffer()

RepetitionPacketBuffer::RepetitionPacketBuffer ( )

RepetitionPacketBuffer Default constructor.

Definition at line 5 of file RepetitionPacketBuffer.cpp.

References m_mutex.

Member Function Documentation

◆ addPacket()

void RepetitionPacketBuffer::addPacket ( gnDataRequest_t  gnDR)

addPacket Add packet to the buffer.

Parameters
gnDRThe GN Data Request of the packet.

Definition at line 10 of file RepetitionPacketBuffer.cpp.

References erase(), killAll(), m_mutex, m_repetitionPacketBuffer, gnDataRequest_s::maximumRepetitionTime, gnDataRequest_s::repetitionInterval, and sendPacketIndication().

Referenced by GeoNet::sendGAC(), GeoNet::sendGBC(), GeoNet::sendGUC(), GeoNet::sendSHB(), and GeoNet::sendTSB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void RepetitionPacketBuffer::clear ( )

clear Clear the buffer.

Definition at line 33 of file RepetitionPacketBuffer.cpp.

References killAll(), m_mutex, and m_repetitionPacketBuffer.

Referenced by GeoNet::utInitialize().

Here is the caller graph for this function:

◆ erase

void RepetitionPacketBuffer::erase ( )
slot

erase Slot used to erase entry.

Definition at line 45 of file RepetitionPacketBuffer.cpp.

References m_mutex, and m_repetitionPacketBuffer.

Referenced by addPacket().

Here is the caller graph for this function:

◆ killAll

void RepetitionPacketBuffer::killAll ( )
signal

killAll Signal used to kill all the entries.

Referenced by addPacket(), and clear().

Here is the caller graph for this function:

◆ sendPacketIndication

void RepetitionPacketBuffer::sendPacketIndication ( gnDataRequest_t  packet)
slot

sendPacketIndication Slot used to notify of sending packet.

Parameters
packetThe packet sent.

Definition at line 59 of file RepetitionPacketBuffer.cpp.

References sendPacketToGn().

Referenced by addPacket().

Here is the caller graph for this function:

◆ sendPacketToGn

void RepetitionPacketBuffer::sendPacketToGn ( gnDataRequest_t  packet)
signal

sendPacketToGn Signal used to send packet.

Parameters
packetThe GN Data Request used to send packet.

Referenced by sendPacketIndication().

Here is the caller graph for this function:

Member Data Documentation

◆ m_mutex

QMutex* RepetitionPacketBuffer::m_mutex
private

Mutex used to llok at the buffer.

Definition at line 60 of file RepetitionPacketBuffer.h.

Referenced by addPacket(), clear(), erase(), and RepetitionPacketBuffer().

◆ m_repetitionPacketBuffer

QVector<RepetitionPacketEntry*> RepetitionPacketBuffer::m_repetitionPacketBuffer
private

The buffer.

Definition at line 61 of file RepetitionPacketBuffer.h.

Referenced by addPacket(), clear(), and erase().


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