ITS
PacketBuffersEntry Class Reference

#include <PacketBuffersEntry.h>

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

Public Member Functions

 PacketBuffersEntry ()
 PacketBuffersEntry PacketBuffersEntry constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, BeaconPacket packet)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, LSRequestPacket packet)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, LSReplyPacket packet)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, GACPacket packet, QByteArray payload, uchar *destination, uchar *forwarder)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, GBCPacket packet, QByteArray payload, uchar *destination, uchar *forwarder)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, GUCPacket packet, QByteArray payload)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, TSBPacket packet, QByteArray payload)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (BasicHeader bh, CommonHeader ch, SHBPacket packet, QByteArray payload)
 PacketBuffersEntry PacketBuffersEntry initialization constructor. More...
 
 PacketBuffersEntry (const PacketBuffersEntry &other)
 PacketBuffersEntry PacketBuffersEntry copy constructor. More...
 
bool operator== (const PacketBuffersEntry &other)
 operator== PacketBuffersEntry comparison operator. More...
 
PacketBuffersEntryoperator= (const PacketBuffersEntry &other)
 operator= PacketBuffersEntry affectation operator. More...
 
BasicHeader basicHeader () const
 basicHeader Entry Basic Header getter. More...
 
CommonHeader commonHeader () const
 basicHeader Entry Common Header getter. More...
 
QByteArray payload () const
 basicHeader Entry payload getter. More...
 
BeaconPacket beaconPacket ()
 beaconPacket Beacon entry creation. More...
 
LSRequestPacket lsRequestPacket ()
 beaconPacket LSRequest entry creation. More...
 
LSReplyPacket lsReplyPacket ()
 beaconPacket LSReply entry creation. More...
 
GACPacket gacPacket ()
 beaconPacket GAC entry creation. More...
 
GBCPacket gbcPacket ()
 beaconPacket GBC entry creation. More...
 
GUCPacket gucPacket ()
 beaconPacket GUC entry creation. More...
 
SHBPacket shbPacket ()
 beaconPacket SHB entry creation. More...
 
TSBPacket tsbPacket ()
 beaconPacket TSB entry creation. More...
 
uchar * destination ()
 destination Entry destination getter. More...
 
uchar * forwarder ()
 forwarder Entry forwarder getter. More...
 
bool isTimeout ()
 isTimeout Check if the entry is expired. More...
 

Public Attributes

QElapsedTimer m_elapsed
 

Protected Attributes

BasicHeader m_bh
 
CommonHeader m_ch
 
QByteArray m_payload
 
BeaconPacket m_beac
 
LSRequestPacket m_lsRequest
 
LSReplyPacket m_lsReply
 
GACPacket m_gac
 
GBCPacket m_gbc
 
GUCPacket m_guc
 
TSBPacket m_tsb
 
SHBPacket m_shb
 
uchar m_destination [6]
 
uchar m_forwarder [6]
 

Detailed Description

Definition at line 24 of file PacketBuffersEntry.h.

Constructor & Destructor Documentation

◆ PacketBuffersEntry() [1/10]

PacketBuffersEntry::PacketBuffersEntry ( )

PacketBuffersEntry PacketBuffersEntry constructor.

Definition at line 3 of file PacketBuffersEntry.cpp.

◆ PacketBuffersEntry() [2/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
BeaconPacket  packet 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (Beacon case).

Definition at line 7 of file PacketBuffersEntry.cpp.

References m_beac, m_bh, m_ch, m_destination, m_forwarder, and m_payload.

◆ PacketBuffersEntry() [3/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
LSRequestPacket  packet 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (LSRequest case).

Definition at line 20 of file PacketBuffersEntry.cpp.

References m_bh, m_ch, m_destination, m_forwarder, m_lsRequest, and m_payload.

◆ PacketBuffersEntry() [4/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
LSReplyPacket  packet 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (LSReply case).

Definition at line 33 of file PacketBuffersEntry.cpp.

References m_bh, m_ch, m_destination, m_forwarder, m_lsReply, and m_payload.

◆ PacketBuffersEntry() [5/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
GACPacket  packet,
QByteArray  payload,
uchar *  destination,
uchar *  forwarder 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (GAC case).
payloadThe packet payload.
destinationThe packet destination.
forwarderThe packet forwarder.

Definition at line 46 of file PacketBuffersEntry.cpp.

References destination(), forwarder(), m_bh, m_ch, m_destination, m_forwarder, m_gac, m_payload, and payload().

Here is the call graph for this function:

◆ PacketBuffersEntry() [6/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
GBCPacket  packet,
QByteArray  payload,
uchar *  destination,
uchar *  forwarder 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (GBC case).
payloadThe packet payload.
destinationThe packet destination.
forwarderThe packet forwarder.

Definition at line 59 of file PacketBuffersEntry.cpp.

References destination(), forwarder(), m_bh, m_ch, m_destination, m_forwarder, m_gbc, m_payload, and payload().

Here is the call graph for this function:

◆ PacketBuffersEntry() [7/10]

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

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (Beacon case).

Definition at line 72 of file PacketBuffersEntry.cpp.

References m_bh, m_ch, m_destination, m_forwarder, m_guc, m_payload, and payload().

Here is the call graph for this function:

◆ PacketBuffersEntry() [8/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
TSBPacket  packet,
QByteArray  payload 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (TSB case).
payloadThe packet payload.

Definition at line 85 of file PacketBuffersEntry.cpp.

References m_bh, m_ch, m_destination, m_forwarder, m_payload, m_tsb, and payload().

Here is the call graph for this function:

◆ PacketBuffersEntry() [9/10]

PacketBuffersEntry::PacketBuffersEntry ( BasicHeader  bh,
CommonHeader  ch,
SHBPacket  packet,
QByteArray  payload 
)

PacketBuffersEntry PacketBuffersEntry initialization constructor.

Parameters
bhPacket Basic Header.
chPacket Common Header.
packetThe packet (SHB case).
payloadThe packet payload.

Definition at line 98 of file PacketBuffersEntry.cpp.

References m_bh, m_ch, m_destination, m_forwarder, m_payload, m_shb, and payload().

Here is the call graph for this function:

◆ PacketBuffersEntry() [10/10]

Member Function Documentation

◆ basicHeader()

BasicHeader PacketBuffersEntry::basicHeader ( ) const
inline

basicHeader Entry Basic Header getter.

Returns
The entry Basic Header.

Definition at line 120 of file PacketBuffersEntry.h.

References m_bh.

Referenced by CBFPacketEntry::execute(), GeoNet::greedy(), and CBFPacketEntry::sendPacket().

Here is the caller graph for this function:

◆ beaconPacket()

BeaconPacket PacketBuffersEntry::beaconPacket ( )

beaconPacket Beacon entry creation.

Returns
Default Beacon entry.

Definition at line 286 of file PacketBuffersEntry.cpp.

References CommonHeader::headerType(), CommonHeader::headerType_beacon, m_beac, and m_ch.

Here is the call graph for this function:

◆ commonHeader()

CommonHeader PacketBuffersEntry::commonHeader ( ) const
inline

basicHeader Entry Common Header getter.

Returns
The entry Common Header.

Definition at line 125 of file PacketBuffersEntry.h.

References m_ch.

Referenced by CBFPacketEntry::execute(), GeoNet::greedy(), BroadcastForwardingPacketEntry::operator==(), and CBFPacketEntry::sendPacket().

Here is the caller graph for this function:

◆ destination()

uchar* PacketBuffersEntry::destination ( )
inline

destination Entry destination getter.

Returns
The entry destination.

Definition at line 175 of file PacketBuffersEntry.h.

References m_destination.

Referenced by GeoNet::greedy(), and PacketBuffersEntry().

Here is the caller graph for this function:

◆ forwarder()

uchar* PacketBuffersEntry::forwarder ( )
inline

forwarder Entry forwarder getter.

Returns
The entry forwarder.

Definition at line 180 of file PacketBuffersEntry.h.

References m_forwarder.

Referenced by GeoNet::greedy(), and PacketBuffersEntry().

Here is the caller graph for this function:

◆ gacPacket()

GACPacket PacketBuffersEntry::gacPacket ( )

beaconPacket GAC entry creation.

Returns
Default GAC entry.

Definition at line 316 of file PacketBuffersEntry.cpp.

References CommonHeader::headerType(), CommonHeader::headerType_geoAnycast, m_ch, and m_gac.

Referenced by GeoNet::greedy().

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

◆ gbcPacket()

GBCPacket PacketBuffersEntry::gbcPacket ( )

beaconPacket GBC entry creation.

Returns
Default GBC entry.

Definition at line 326 of file PacketBuffersEntry.cpp.

References CommonHeader::headerType(), CommonHeader::headerType_geoBroadcast, m_ch, and m_gbc.

Referenced by GeoNet::greedy().

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

◆ gucPacket()

GUCPacket PacketBuffersEntry::gucPacket ( )

beaconPacket GUC entry creation.

Returns
Default GUC entry.

Definition at line 336 of file PacketBuffersEntry.cpp.

References CommonHeader::headerType(), CommonHeader::headerType_geoUnicast, m_ch, and m_guc.

Referenced by GeoNet::greedy().

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

◆ isTimeout()

bool PacketBuffersEntry::isTimeout ( )
inline

isTimeout Check if the entry is expired.

Returns
True if the netry is expired.

Definition at line 186 of file PacketBuffersEntry.h.

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

Here is the call graph for this function:

◆ lsReplyPacket()

LSReplyPacket PacketBuffersEntry::lsReplyPacket ( )

beaconPacket LSReply entry creation.

Returns
Default LSReply entry.

Definition at line 306 of file PacketBuffersEntry.cpp.

References CommonHeader::headerSubType(), CommonHeader::headerSubTypeLocationService_Reply, CommonHeader::headerType(), CommonHeader::headerType_locationService, m_ch, and m_lsReply.

Referenced by GeoNet::greedy().

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

◆ lsRequestPacket()

LSRequestPacket PacketBuffersEntry::lsRequestPacket ( )

beaconPacket LSRequest entry creation.

Returns
Default LSRequest entry.

Definition at line 296 of file PacketBuffersEntry.cpp.

References CommonHeader::headerSubType(), CommonHeader::headerSubTypeLocationService_Request, CommonHeader::headerType(), CommonHeader::headerType_locationService, m_ch, and m_lsRequest.

Here is the call graph for this function:

◆ operator=()

◆ operator==()

◆ payload()

QByteArray PacketBuffersEntry::payload ( ) const
inline

basicHeader Entry payload getter.

Returns
The entry payload.

Definition at line 130 of file PacketBuffersEntry.h.

References m_payload.

Referenced by BroadcastForwardingPacketEntry::BroadcastForwardingPacketEntry(), CBFPacketEntry::CBFPacketEntry(), GeoNet::greedy(), PacketBuffersEntry(), and CBFPacketEntry::sendPacket().

Here is the caller graph for this function:

◆ shbPacket()

SHBPacket PacketBuffersEntry::shbPacket ( )

beaconPacket SHB entry creation.

Returns
Default SHB entry.

Definition at line 346 of file PacketBuffersEntry.cpp.

References CommonHeader::headerSubType(), CommonHeader::headerSubTypeTopologicallyScopedBroadcast_singleHop, CommonHeader::headerType(), CommonHeader::headerType_topologicallyScopedBroadcast, m_ch, and m_shb.

Here is the call graph for this function:

◆ tsbPacket()

TSBPacket PacketBuffersEntry::tsbPacket ( )

beaconPacket TSB entry creation.

Returns
Default TSB entry.

Definition at line 356 of file PacketBuffersEntry.cpp.

References CommonHeader::headerSubType(), CommonHeader::headerSubTypeTopologicallyScopedBroadcast_multiHop, CommonHeader::headerType(), CommonHeader::headerType_topologicallyScopedBroadcast, m_ch, and m_tsb.

Here is the call graph for this function:

Member Data Documentation

◆ m_beac

BeaconPacket PacketBuffersEntry::m_beac
protected

◆ m_bh

◆ m_ch

◆ m_destination

uchar PacketBuffersEntry::m_destination[6]
protected

Entry destination.

Definition at line 203 of file PacketBuffersEntry.h.

Referenced by destination(), operator=(), and PacketBuffersEntry().

◆ m_elapsed

QElapsedTimer PacketBuffersEntry::m_elapsed

◆ m_forwarder

uchar PacketBuffersEntry::m_forwarder[6]
protected

Entry forwarder.

Definition at line 204 of file PacketBuffersEntry.h.

Referenced by forwarder(), operator=(), and PacketBuffersEntry().

◆ m_gac

◆ m_gbc

◆ m_guc

◆ m_lsReply

◆ m_lsRequest

LSRequestPacket PacketBuffersEntry::m_lsRequest
protected

◆ m_payload

QByteArray PacketBuffersEntry::m_payload
protected

◆ m_shb

◆ m_tsb


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