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

DSR Send Buffer Entry. More...

#include <dsr-rsendbuff.h>

+ Collaboration diagram for ns3::dsr::SendBuffEntry:

Public Member Functions

 SendBuffEntry (Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0)
bool operator== (SendBuffEntry const &o) const
Ptr< const PacketGetPacket () const
void SetPacket (Ptr< const Packet > p)
Ipv4Address GetDestination () const
void SetDestination (Ipv4Address d)
void SetExpireTime (Time exp)
Time GetExpireTime () const
void SetProtocol (uint8_t p)
uint8_t GetProtocol () const

Private Attributes

Ipv4Address m_dst
Time m_expire
Ptr< const Packetm_packet
uint8_t m_protocol

Detailed Description

DSR Send Buffer Entry.

Definition at line 45 of file dsr-rsendbuff.h.

Constructor & Destructor Documentation

ns3::dsr::SendBuffEntry::SendBuffEntry ( Ptr< const Packet pa = 0,
Ipv4Address  d = Ipv4Address (),
Time  exp = Simulator::Now (),
uint8_t  p = 0 
)
inline

Definition at line 49 of file dsr-rsendbuff.h.

Member Function Documentation

Ipv4Address ns3::dsr::SendBuffEntry::GetDestination ( void  ) const
inline

Definition at line 75 of file dsr-rsendbuff.h.

References m_dst.

Referenced by ns3::dsr::SendBuffer::Drop(), ns3::dsr::SendBuffer::Enqueue(), and ns3::dsr::SendBuffer::IsEqual().

+ Here is the caller graph for this function:

Time ns3::dsr::SendBuffEntry::GetExpireTime ( ) const
inline

Definition at line 87 of file dsr-rsendbuff.h.

References m_expire, and ns3::Now().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 67 of file dsr-rsendbuff.h.

References m_packet.

Referenced by ns3::dsr::SendBuffer::Dequeue(), ns3::dsr::SendBuffer::Drop(), ns3::dsr::SendBuffer::Enqueue(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

uint8_t ns3::dsr::SendBuffEntry::GetProtocol ( ) const
inline

Definition at line 95 of file dsr-rsendbuff.h.

References m_protocol.

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

Compare send buffer entries

Returns
true if equal

Definition at line 61 of file dsr-rsendbuff.h.

References m_dst, m_expire, and m_packet.

void ns3::dsr::SendBuffEntry::SetDestination ( Ipv4Address  d)
inline

Definition at line 79 of file dsr-rsendbuff.h.

References m_dst.

void ns3::dsr::SendBuffEntry::SetExpireTime ( Time  exp)
inline

Definition at line 83 of file dsr-rsendbuff.h.

References m_expire, and ns3::Now().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 71 of file dsr-rsendbuff.h.

References m_packet.

void ns3::dsr::SendBuffEntry::SetProtocol ( uint8_t  p)
inline

Definition at line 91 of file dsr-rsendbuff.h.

References m_protocol.

Member Data Documentation

Ipv4Address ns3::dsr::SendBuffEntry::m_dst
private

Definition at line 104 of file dsr-rsendbuff.h.

Referenced by GetDestination(), operator==(), and SetDestination().

Time ns3::dsr::SendBuffEntry::m_expire
private

Definition at line 106 of file dsr-rsendbuff.h.

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

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

Definition at line 102 of file dsr-rsendbuff.h.

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

uint8_t ns3::dsr::SendBuffEntry::m_protocol
private

Definition at line 108 of file dsr-rsendbuff.h.

Referenced by GetProtocol(), and SetProtocol().


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