A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::dsr::DsrNetworkQueueEntry Class Reference

DSR Network Queue Entry. More...

#include <dsr-network-queue.h>

+ Collaboration diagram for ns3::dsr::DsrNetworkQueueEntry:

Public Member Functions

 DsrNetworkQueueEntry (Ptr< const Packet > pa=0, Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), Ptr< Ipv4Route > r=0)
 Construct a DsrNetworkQueueEntry with the given parameters. More...
 
bool operator== (DsrNetworkQueueEntry const &o) const
 Compare send buffer entries. More...
 
Fields
Ptr< const PacketGetPacket () const
 
void SetPacket (Ptr< const Packet > p)
 
Ptr< Ipv4RouteGetIpv4Route () const
 
void SetIpv4Route (Ptr< Ipv4Route > route)
 
Ipv4Address GetSourceAddress () const
 
void SetSourceAddress (Ipv4Address addr)
 
Ipv4Address GetNextHopAddress () const
 
void SetNextHopAddress (Ipv4Address addr)
 
Time GetInsertedTimeStamp (void) const
 
void SetInsertedTimeStamp (Time time)
 

Private Attributes

Ptr< Ipv4Routem_ipv4Route
 Ipv4Route. More...
 
Ipv4Address m_nextHopAddr
 
Ptr< const Packetm_packet
 Data packet. More...
 
Ipv4Address m_srcAddr
 
Time tstamp
 

Detailed Description

DSR Network Queue Entry.

Definition at line 53 of file dsr-network-queue.h.

Constructor & Destructor Documentation

ns3::dsr::DsrNetworkQueueEntry::DsrNetworkQueueEntry ( Ptr< const Packet pa = 0,
Ipv4Address  s = Ipv4Address (),
Ipv4Address  n = Ipv4Address (),
Time  exp = Simulator::Now (),
Ptr< Ipv4Route r = 0 
)
inline

Construct a DsrNetworkQueueEntry with the given parameters.

Parameters
papacket
sIPv4 address of the source
nIPv4 address of the next hop node
expexpiration time
rRoute

Definition at line 65 of file dsr-network-queue.h.

Member Function Documentation

Time ns3::dsr::DsrNetworkQueueEntry::GetInsertedTimeStamp ( void  ) const
inline

Definition at line 119 of file dsr-network-queue.h.

References tstamp.

Ptr<Ipv4Route> ns3::dsr::DsrNetworkQueueEntry::GetIpv4Route ( ) const
inline

Definition at line 95 of file dsr-network-queue.h.

References m_ipv4Route.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::GetNextHopAddress ( ) const
inline

Definition at line 111 of file dsr-network-queue.h.

References m_nextHopAddr.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

Ptr<const Packet> ns3::dsr::DsrNetworkQueueEntry::GetPacket ( ) const
inline

Definition at line 87 of file dsr-network-queue.h.

References m_packet.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::GetSourceAddress ( ) const
inline

Definition at line 103 of file dsr-network-queue.h.

References m_srcAddr.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

bool ns3::dsr::DsrNetworkQueueEntry::operator== ( DsrNetworkQueueEntry const &  o) const
inline

Compare send buffer entries.

Parameters
o
Returns
true if equal

Definition at line 79 of file dsr-network-queue.h.

References m_ipv4Route, m_nextHopAddr, m_packet, m_srcAddr, and tstamp.

void ns3::dsr::DsrNetworkQueueEntry::SetInsertedTimeStamp ( Time  time)
inline

Definition at line 123 of file dsr-network-queue.h.

References tstamp.

Referenced by ns3::dsr::DsrNetworkQueue::Enqueue().

+ Here is the caller graph for this function:

void ns3::dsr::DsrNetworkQueueEntry::SetIpv4Route ( Ptr< Ipv4Route route)
inline

Definition at line 99 of file dsr-network-queue.h.

References m_ipv4Route.

void ns3::dsr::DsrNetworkQueueEntry::SetNextHopAddress ( Ipv4Address  addr)
inline

Definition at line 115 of file dsr-network-queue.h.

References m_nextHopAddr.

void ns3::dsr::DsrNetworkQueueEntry::SetPacket ( Ptr< const Packet p)
inline

Definition at line 91 of file dsr-network-queue.h.

References m_packet.

void ns3::dsr::DsrNetworkQueueEntry::SetSourceAddress ( Ipv4Address  addr)
inline

Definition at line 107 of file dsr-network-queue.h.

References m_srcAddr.

Member Data Documentation

Ptr<Ipv4Route> ns3::dsr::DsrNetworkQueueEntry::m_ipv4Route
private

Ipv4Route.

Definition at line 135 of file dsr-network-queue.h.

Referenced by GetIpv4Route(), operator==(), and SetIpv4Route().

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::m_nextHopAddr
private

Definition at line 132 of file dsr-network-queue.h.

Referenced by GetNextHopAddress(), operator==(), and SetNextHopAddress().

Ptr<const Packet> ns3::dsr::DsrNetworkQueueEntry::m_packet
private

Data packet.

Definition at line 130 of file dsr-network-queue.h.

Referenced by GetPacket(), operator==(), and SetPacket().

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::m_srcAddr
private

Definition at line 131 of file dsr-network-queue.h.

Referenced by GetSourceAddress(), operator==(), and SetSourceAddress().

Time ns3::dsr::DsrNetworkQueueEntry::tstamp
private

Definition at line 133 of file dsr-network-queue.h.

Referenced by GetInsertedTimeStamp(), operator==(), and SetInsertedTimeStamp().


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