A Discrete-Event Network Simulator
API
ns3::dsr::DsrSendBuffEntry Class Reference

DSR Send Buffer Entry. More...

#include "dsr-rsendbuff.h"

+ Collaboration diagram for ns3::dsr::DsrSendBuffEntry:

Public Member Functions

 DsrSendBuffEntry (Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0)
 Construct DsrSendBuffEntry with the given parameters. More...
 
Ipv4Address GetDestination () const
 
Time GetExpireTime () const
 
Ptr< const PacketGetPacket () const
 
uint8_t GetProtocol () const
 
bool operator== (DsrSendBuffEntry const &o) const
 Compare send buffer entries. More...
 
void SetDestination (Ipv4Address d)
 
void SetExpireTime (Time exp)
 
void SetPacket (Ptr< const Packet > p)
 
void SetProtocol (uint8_t p)
 

Private Attributes

Ipv4Address m_dst
 Destination address. More...
 
Time m_expire
 Expire time for queue entry. More...
 
Ptr< const Packetm_packet
 Data packet. More...
 
uint8_t m_protocol
 The protocol number. More...
 

Detailed Description

DSR Send Buffer Entry.

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

Constructor & Destructor Documentation

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

Construct DsrSendBuffEntry with the given parameters.

Parameters
papacket
ddestination address
expexpiration time
pprotocol number

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

Member Function Documentation

Ipv4Address ns3::dsr::DsrSendBuffEntry::GetDestination ( ) const
inline

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

References m_dst.

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

+ Here is the caller graph for this function:

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

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

References m_expire, and ns3::Simulator::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::DsrSendBuffEntry::GetPacket ( ) const
inline

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

References m_packet.

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

+ Here is the caller graph for this function:

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

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

References m_protocol.

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

Compare send buffer entries.

Parameters
oanother DsrSendBuffEntry
Returns
true if equal

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

References m_dst, m_expire, and m_packet.

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

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

References m_dst.

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

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

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References m_packet.

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

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

References m_protocol.

Member Data Documentation

Ipv4Address ns3::dsr::DsrSendBuffEntry::m_dst
private

Destination address.

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

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

Time ns3::dsr::DsrSendBuffEntry::m_expire
private

Expire time for queue entry.

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

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

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

Data packet.

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

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

uint8_t ns3::dsr::DsrSendBuffEntry::m_protocol
private

The protocol number.

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

Referenced by GetProtocol(), and SetProtocol().


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