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

AODV Queue Entry. More...

#include <aodv-rqueue.h>

+ Collaboration diagram for ns3::aodv::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(), Time exp=Simulator::Now())
 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

AODV Queue Entry.

Definition at line 43 of file aodv-rqueue.h.

Member Typedef Documentation

Constructor & Destructor Documentation

ns3::aodv::QueueEntry::QueueEntry ( Ptr< const Packet pa = 0,
Ipv4Header const &  h = Ipv4Header (),
UnicastForwardCallback  ucb = UnicastForwardCallback (),
ErrorCallback  ecb = ErrorCallback (),
Time  exp = Simulator::Now () 
)
inline

c-tor

Definition at line 49 of file aodv-rqueue.h.

Member Function Documentation

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

Definition at line 68 of file aodv-rqueue.h.

References m_ecb.

Referenced by ns3::aodv::QueueEntryTest::DoRun(), and ns3::aodv::RequestQueue::Drop().

+ Here is the caller graph for this function:

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

Definition at line 75 of file aodv-rqueue.h.

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

Referenced by ns3::aodv::QueueEntryTest::DoRun(), and ns3::aodv::IsExpired::operator()().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 70 of file aodv-rqueue.h.

References m_packet.

Referenced by ns3::aodv::QueueEntryTest::DoRun(), ns3::aodv::RequestQueue::Drop(), ns3::aodv::RequestQueue::Enqueue(), and ns3::aodv::RoutingProtocol::SendPacketFromQueue().

+ Here is the caller graph for this function:

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

Definition at line 66 of file aodv-rqueue.h.

References m_ucb.

Referenced by ns3::aodv::QueueEntryTest::DoRun(), and ns3::aodv::RoutingProtocol::SendPacketFromQueue().

+ Here is the caller graph for this function:

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

Compare queue entries.

Returns
true if equal

Definition at line 60 of file aodv-rqueue.h.

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

+ Here is the call graph for this function:

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

Definition at line 69 of file aodv-rqueue.h.

References m_ecb.

Referenced by ns3::aodv::QueueEntryTest::DoRun().

+ Here is the caller graph for this function:

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

Definition at line 74 of file aodv-rqueue.h.

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

Referenced by ns3::aodv::QueueEntryTest::DoRun(), and ns3::aodv::RequestQueue::Enqueue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 73 of file aodv-rqueue.h.

References m_header.

Referenced by ns3::aodv::QueueEntryTest::DoRun().

+ Here is the caller graph for this function:

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

Definition at line 71 of file aodv-rqueue.h.

References m_packet.

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

Definition at line 67 of file aodv-rqueue.h.

References m_ucb.

Referenced by ns3::aodv::QueueEntryTest::DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

ErrorCallback ns3::aodv::QueueEntry::m_ecb
private

Error callback.

Definition at line 85 of file aodv-rqueue.h.

Referenced by GetErrorCallback(), and SetErrorCallback().

Time ns3::aodv::QueueEntry::m_expire
private

Expire time for queue entry.

Definition at line 87 of file aodv-rqueue.h.

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

Ipv4Header ns3::aodv::QueueEntry::m_header
private

IP header.

Definition at line 81 of file aodv-rqueue.h.

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

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

Data packet.

Definition at line 79 of file aodv-rqueue.h.

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

UnicastForwardCallback ns3::aodv::QueueEntry::m_ucb
private

Unicast forward callback.

Definition at line 83 of file aodv-rqueue.h.

Referenced by GetUnicastForwardCallback(), and SetUnicastForwardCallback().


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