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)
 c-tor
bool operator== (DsrNetworkQueueEntry const &o) const
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.
Ipv4Address m_nextHopAddr
Ptr< const Packetm_packet
 Data packet.
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

c-tor

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

Member Function Documentation

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

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

References tstamp.

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

Definition at line 86 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 102 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 78 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 94 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

Returns
true if equal

Definition at line 70 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 114 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 90 of file dsr-network-queue.h.

References m_ipv4Route.

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

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

References m_nextHopAddr.

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

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

References m_packet.

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

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

References m_srcAddr.

Member Data Documentation

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

Ipv4Route.

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

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

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

Definition at line 123 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 121 of file dsr-network-queue.h.

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

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

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

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

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

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

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


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