ITS
UnicastForwardingPacketEntry Class Reference

#include <UnicastForwardingPacketEntry.h>

Collaboration diagram for UnicastForwardingPacketEntry:
[legend]

Public Member Functions

 UnicastForwardingPacketEntry ()
 UnicastForwardingPacketEntry UnicastForwardingPacketEntry constructor. More...
 
 UnicastForwardingPacketEntry (BasicHeader bh, CommonHeader ch, GUCPacket packet, QByteArray payload, QByteArray sender)
 UnicastForwardingPacketEntry UnicastForwardingPacketEntry initialization constructor. More...
 
 UnicastForwardingPacketEntry (const UnicastForwardingPacketEntry &other)
 UnicastForwardingPacketEntry UnicastForwardingPacketEntry copy constructor. More...
 
bool operator== (const UnicastForwardingPacketEntry &other)
 operator== UnicastForwardingPacketEntry comparison operator. More...
 
UnicastForwardingPacketEntryoperator= (const UnicastForwardingPacketEntry &other)
 operator= UnicastForwardingPacketEntry affectation operator. More...
 
void updateSourcePacketSoPv (LongPositionVector lpv)
 updateSourcePacketSoPv Update entry SO PV. More...
 
BasicHeader basicHeader () const
 basicHeader Entry Basic Header getter. More...
 
CommonHeader commonHeader () const
 commonHeader Entry Common Header getter. More...
 
QByteArray payload () const
 payload Entry payload getter. More...
 
GUCPacket gucPacket () const
 gucPacket Entry packet getter. More...
 
bool isTimeout ()
 isTimeout Check if packet is expired. More...
 
QByteArray sender () const
 sender Entry sender getter. More...
 

Public Attributes

QElapsedTimer m_elapsed
 

Private Attributes

QByteArray m_sender
 
BasicHeader m_bh
 
CommonHeader m_ch
 
QByteArray m_payload
 
GUCPacket m_guc
 

Detailed Description

Definition at line 15 of file UnicastForwardingPacketEntry.h.

Constructor & Destructor Documentation

◆ UnicastForwardingPacketEntry() [1/3]

UnicastForwardingPacketEntry::UnicastForwardingPacketEntry ( )

UnicastForwardingPacketEntry UnicastForwardingPacketEntry constructor.

Definition at line 3 of file UnicastForwardingPacketEntry.cpp.

References m_bh, and m_ch.

◆ UnicastForwardingPacketEntry() [2/3]

UnicastForwardingPacketEntry::UnicastForwardingPacketEntry ( BasicHeader  bh,
CommonHeader  ch,
GUCPacket  packet,
QByteArray  payload,
QByteArray  sender 
)

UnicastForwardingPacketEntry UnicastForwardingPacketEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet.
payloadThe packet payload.
senderThe sender.

Definition at line 9 of file UnicastForwardingPacketEntry.cpp.

References m_bh, m_ch, m_guc, m_payload, m_sender, payload(), and sender().

Here is the call graph for this function:

◆ UnicastForwardingPacketEntry() [3/3]

UnicastForwardingPacketEntry::UnicastForwardingPacketEntry ( const UnicastForwardingPacketEntry other)

UnicastForwardingPacketEntry UnicastForwardingPacketEntry copy constructor.

Parameters
otherThe UnicastForwardingPacketEntry to copy.

Definition at line 18 of file UnicastForwardingPacketEntry.cpp.

References m_bh, m_ch, m_elapsed, m_guc, m_payload, and m_sender.

Member Function Documentation

◆ basicHeader()

BasicHeader UnicastForwardingPacketEntry::basicHeader ( ) const
inline

basicHeader Entry Basic Header getter.

Returns
The entry Basic Header.

Definition at line 61 of file UnicastForwardingPacketEntry.h.

References m_bh.

Referenced by GeoNet::checkUCFPB().

Here is the caller graph for this function:

◆ commonHeader()

CommonHeader UnicastForwardingPacketEntry::commonHeader ( ) const
inline

commonHeader Entry Common Header getter.

Returns
The entry Common Header.

Definition at line 66 of file UnicastForwardingPacketEntry.h.

References m_ch.

Referenced by GeoNet::checkUCFPB().

Here is the caller graph for this function:

◆ gucPacket()

GUCPacket UnicastForwardingPacketEntry::gucPacket ( ) const
inline

gucPacket Entry packet getter.

Returns
The entry packet.

Definition at line 76 of file UnicastForwardingPacketEntry.h.

References m_guc.

Referenced by GeoNet::checkUCFPB().

Here is the caller graph for this function:

◆ isTimeout()

bool UnicastForwardingPacketEntry::isTimeout ( )
inline

isTimeout Check if packet is expired.

Returns
True if the packet is expired.

Definition at line 82 of file UnicastForwardingPacketEntry.h.

References BasicHeader::lifeTime(), LifeTime::lifeTime(), m_bh, and m_elapsed.

Here is the call graph for this function:

◆ operator=()

UnicastForwardingPacketEntry & UnicastForwardingPacketEntry::operator= ( const UnicastForwardingPacketEntry other)

operator= UnicastForwardingPacketEntry affectation operator.

Parameters
otherThe UnicastForwardingPacketEntry to affect.
Returns
The affected UnicastForwardingPacketEntry.

Definition at line 33 of file UnicastForwardingPacketEntry.cpp.

References m_bh, m_ch, m_elapsed, m_guc, m_payload, and m_sender.

◆ operator==()

bool UnicastForwardingPacketEntry::operator== ( const UnicastForwardingPacketEntry other)

operator== UnicastForwardingPacketEntry comparison operator.

Parameters
otherThe UnicastForwardingPacketEntry to compare.
Returns
True if they are equals.

Definition at line 28 of file UnicastForwardingPacketEntry.cpp.

References isDuplicatePacketDetectionTimestampSN(), m_guc, GUCPacket::sequenceNumber(), GUCPacket::soPv(), and LongPositionVector::timestamp().

Here is the call graph for this function:

◆ payload()

QByteArray UnicastForwardingPacketEntry::payload ( ) const
inline

payload Entry payload getter.

Returns
The entry payload.

Definition at line 71 of file UnicastForwardingPacketEntry.h.

References m_payload.

Referenced by GeoNet::checkUCFPB(), and UnicastForwardingPacketEntry().

Here is the caller graph for this function:

◆ sender()

QByteArray UnicastForwardingPacketEntry::sender ( ) const
inline

sender Entry sender getter.

Returns
The entry sender.

Definition at line 88 of file UnicastForwardingPacketEntry.h.

References m_sender.

Referenced by GeoNet::checkUCFPB(), and UnicastForwardingPacketEntry().

Here is the caller graph for this function:

◆ updateSourcePacketSoPv()

void UnicastForwardingPacketEntry::updateSourcePacketSoPv ( LongPositionVector  lpv)

updateSourcePacketSoPv Update entry SO PV.

Parameters
lpvThe new SO PV.

Definition at line 45 of file UnicastForwardingPacketEntry.cpp.

References LongPositionVector::gnAddr(), m_guc, GUCPacket::setSoPv(), and GUCPacket::soPv().

Referenced by GeoNet::checkUCFPB().

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

Member Data Documentation

◆ m_bh

BasicHeader UnicastForwardingPacketEntry::m_bh
private

Entry Basic Header.

Definition at line 95 of file UnicastForwardingPacketEntry.h.

Referenced by basicHeader(), isTimeout(), operator=(), and UnicastForwardingPacketEntry().

◆ m_ch

CommonHeader UnicastForwardingPacketEntry::m_ch
private

Entry Common Header.

Definition at line 96 of file UnicastForwardingPacketEntry.h.

Referenced by commonHeader(), operator=(), and UnicastForwardingPacketEntry().

◆ m_elapsed

QElapsedTimer UnicastForwardingPacketEntry::m_elapsed

◆ m_guc

GUCPacket UnicastForwardingPacketEntry::m_guc
private

◆ m_payload

QByteArray UnicastForwardingPacketEntry::m_payload
private

Entry payload, with BTP

Definition at line 97 of file UnicastForwardingPacketEntry.h.

Referenced by operator=(), payload(), and UnicastForwardingPacketEntry().

◆ m_sender

QByteArray UnicastForwardingPacketEntry::m_sender
private

Entry sender.

Definition at line 93 of file UnicastForwardingPacketEntry.h.

Referenced by operator=(), sender(), and UnicastForwardingPacketEntry().


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