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

DSDV Queue Entry. More...

#include <dsdv-packet-queue.h>

+ Collaboration diagram for ns3::dsdv::QueueEntry:

Public Types

typedef
Ipv4RoutingProtocol::ErrorCallback 
ErrorCallback
 
typedef
Ipv4RoutingProtocol::UnicastForwardCallback 
UnicastForwardCallback
 

Public Member Functions

 QueueEntry (Ptr< const Packet > pa=0, Ipv4Header const &h=Ipv4Header(), UnicastForwardCallback ucb=UnicastForwardCallback(), ErrorCallback ecb=ErrorCallback())
 c-tor More...
 
bool operator== (QueueEntry const &o) const
 Compare queue entries. More...
 
Fields
UnicastForwardCallback GetUnicastForwardCallback () const
 
void SetUnicastForwardCallback (UnicastForwardCallback ucb)
 
ErrorCallback GetErrorCallback () const
 
void SetErrorCallback (ErrorCallback ecb)
 
Ptr< const PacketGetPacket () const
 
void SetPacket (Ptr< const Packet > p)
 
Ipv4Header GetIpv4Header () const
 
void SetIpv4Header (Ipv4Header h)
 
void SetExpireTime (Time exp)
 
Time GetExpireTime () const
 

Private Attributes

ErrorCallback m_ecb
 Error callback. More...
 
Time m_expire
 Expire time for queue entry. More...
 
Ipv4Header m_header
 IP header. More...
 
Ptr< const Packetm_packet
 Data packet. More...
 
UnicastForwardCallback m_ucb
 Unicast forward callback. More...
 

Detailed Description

DSDV Queue Entry.

Definition at line 45 of file dsdv-packet-queue.h.

Member Typedef Documentation

Constructor & Destructor Documentation

ns3::dsdv::QueueEntry::QueueEntry ( Ptr< const Packet pa = 0,
Ipv4Header const &  h = Ipv4Header (),
UnicastForwardCallback  ucb = UnicastForwardCallback (),
ErrorCallback  ecb = ErrorCallback () 
)
inline

c-tor

Definition at line 51 of file dsdv-packet-queue.h.

Member Function Documentation

ErrorCallback ns3::dsdv::QueueEntry::GetErrorCallback ( ) const
inline

Definition at line 80 of file dsdv-packet-queue.h.

References m_ecb.

Time ns3::dsdv::QueueEntry::GetExpireTime ( ) const
inline

Definition at line 108 of file dsdv-packet-queue.h.

References m_expire, and ns3::Simulator::Now().

Referenced by ns3::dsdv::IsExpired::operator()().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ipv4Header ns3::dsdv::QueueEntry::GetIpv4Header ( ) const
inline
Ptr<const Packet> ns3::dsdv::QueueEntry::GetPacket ( ) const
inline

Definition at line 88 of file dsdv-packet-queue.h.

References m_packet.

Referenced by ns3::dsdv::PacketQueue::Drop(), ns3::dsdv::PacketQueue::Enqueue(), and ns3::dsdv::RoutingProtocol::SendPacketFromQueue().

+ Here is the caller graph for this function:

UnicastForwardCallback ns3::dsdv::QueueEntry::GetUnicastForwardCallback ( ) const
inline

Definition at line 72 of file dsdv-packet-queue.h.

References m_ucb.

Referenced by ns3::dsdv::RoutingProtocol::SendPacketFromQueue().

+ Here is the caller graph for this function:

bool ns3::dsdv::QueueEntry::operator== ( QueueEntry const &  o) const
inline

Compare queue entries.

Returns
true if equal

Definition at line 66 of file dsdv-packet-queue.h.

References ns3::Ipv4Header::GetDestination(), m_expire, m_header, and m_packet.

+ Here is the call graph for this function:

void ns3::dsdv::QueueEntry::SetErrorCallback ( ErrorCallback  ecb)
inline

Definition at line 84 of file dsdv-packet-queue.h.

References m_ecb.

void ns3::dsdv::QueueEntry::SetExpireTime ( Time  exp)
inline

Definition at line 104 of file dsdv-packet-queue.h.

References m_expire, and ns3::Simulator::Now().

Referenced by ns3::dsdv::PacketQueue::Enqueue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsdv::QueueEntry::SetIpv4Header ( Ipv4Header  h)
inline

Definition at line 100 of file dsdv-packet-queue.h.

References m_header.

void ns3::dsdv::QueueEntry::SetPacket ( Ptr< const Packet p)
inline

Definition at line 92 of file dsdv-packet-queue.h.

References m_packet.

void ns3::dsdv::QueueEntry::SetUnicastForwardCallback ( UnicastForwardCallback  ucb)
inline

Definition at line 76 of file dsdv-packet-queue.h.

References m_ucb.

Member Data Documentation

ErrorCallback ns3::dsdv::QueueEntry::m_ecb
private

Error callback.

Definition at line 121 of file dsdv-packet-queue.h.

Referenced by GetErrorCallback(), and SetErrorCallback().

Time ns3::dsdv::QueueEntry::m_expire
private

Expire time for queue entry.

Definition at line 123 of file dsdv-packet-queue.h.

Referenced by GetExpireTime(), operator==(), and SetExpireTime().

Ipv4Header ns3::dsdv::QueueEntry::m_header
private

IP header.

Definition at line 117 of file dsdv-packet-queue.h.

Referenced by GetIpv4Header(), operator==(), and SetIpv4Header().

Ptr<const Packet> ns3::dsdv::QueueEntry::m_packet
private

Data packet.

Definition at line 115 of file dsdv-packet-queue.h.

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

UnicastForwardCallback ns3::dsdv::QueueEntry::m_ucb
private

Unicast forward callback.

Definition at line 119 of file dsdv-packet-queue.h.

Referenced by GetUnicastForwardCallback(), and SetUnicastForwardCallback().


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