A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::zigbee::RreqRetryTable Class Reference

A table storing information about upcoming route request retries. More...

#include "zigbee-nwk-tables.h"

+ Collaboration diagram for ns3::zigbee::RreqRetryTable:

Public Member Functions

bool AddEntry (Ptr< RreqRetryTableEntry > entry)
 Adds an entry to the table.
 
void Delete (uint8_t rreqId)
 Delete an entry from the table using the RREQ ID.
 
void Dispose ()
 Dispose of the table and all its elements.
 
bool LookUpEntry (uint8_t rreqId, Ptr< RreqRetryTableEntry > &entryFound)
 Look up for an entry in the table.
 
void Print (Ptr< OutputStreamWrapper > stream) const
 Print the neighbor table.
 

Private Attributes

std::deque< Ptr< RreqRetryTableEntry > > m_rreqRetryTable
 The Table containing RREQ Table entries.
 

Detailed Description

A table storing information about upcoming route request retries.

This table is use to keep track of all RREQ retry attempts from a given device.

Definition at line 1205 of file zigbee-nwk-tables.h.

Member Function Documentation

◆ AddEntry()

bool ns3::zigbee::RreqRetryTable::AddEntry ( Ptr< RreqRetryTableEntry > entry)

Adds an entry to the table.

Parameters
entryThe RREQ retry table entry
Returns
True if the entry was added to the table.

Definition at line 96 of file zigbee-nwk-tables.cc.

References m_rreqRetryTable.

Referenced by ns3::zigbee::ZigbeeNwk::SendRREQ().

+ Here is the caller graph for this function:

◆ Delete()

void ns3::zigbee::RreqRetryTable::Delete ( uint8_t rreqId)

Delete an entry from the table using the RREQ ID.

Parameters
rreqIdThe RREQ ID use to delete an entry from the table

Definition at line 119 of file zigbee-nwk-tables.cc.

References m_rreqRetryTable.

Referenced by ns3::zigbee::ZigbeeNwk::ReceiveRREP().

+ Here is the caller graph for this function:

◆ Dispose()

void ns3::zigbee::RreqRetryTable::Dispose ( )

Dispose of the table and all its elements.

Definition at line 127 of file zigbee-nwk-tables.cc.

References m_rreqRetryTable.

Referenced by ns3::zigbee::ZigbeeNwk::DoDispose().

+ Here is the caller graph for this function:

◆ LookUpEntry()

bool ns3::zigbee::RreqRetryTable::LookUpEntry ( uint8_t rreqId,
Ptr< RreqRetryTableEntry > & entryFound )

Look up for an entry in the table.

Parameters
rreqIdThe RREQ ID used to look up for an entry in the table
entryFoundThe returned entry if found in the table
Returns
True if a searched entry is found

Definition at line 103 of file zigbee-nwk-tables.cc.

References m_rreqRetryTable, and NS_LOG_FUNCTION.

Referenced by ns3::zigbee::ZigbeeNwk::ReceiveRREP(), and ns3::zigbee::ZigbeeNwk::SendRREQ().

+ Here is the caller graph for this function:

◆ Print()

void ns3::zigbee::RreqRetryTable::Print ( Ptr< OutputStreamWrapper > stream) const

Print the neighbor table.

Parameters
streamThe output stream where the table is printed

Definition at line 137 of file zigbee-nwk-tables.cc.

References m_rreqRetryTable.

Referenced by ns3::zigbee::ZigbeeNwk::PrintRREQRetryTable().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_rreqRetryTable

std::deque<Ptr<RreqRetryTableEntry> > ns3::zigbee::RreqRetryTable::m_rreqRetryTable
private

The Table containing RREQ Table entries.

Definition at line 1246 of file zigbee-nwk-tables.h.

Referenced by AddEntry(), Delete(), Dispose(), LookUpEntry(), and Print().


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