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

DSR Error Buffer Entry. More...

#include <dsr-errorbuff.h>

+ Collaboration diagram for ns3::dsr::ErrorBuffEntry:

Public Member Functions

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

Private Attributes

Ipv4Address m_dst
Time m_expire
Ipv4Address m_nextHop
Ptr< const Packetm_packet
uint8_t m_protocol
Ipv4Address m_source

Detailed Description

DSR Error Buffer Entry.

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

Definition at line 77 of file dsr-errorbuff.h.

References m_dst.

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

+ Here is the caller graph for this function:

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

Definition at line 105 of file dsr-errorbuff.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:

Ipv4Address ns3::dsr::ErrorBuffEntry::GetNextHop ( ) const
inline

Definition at line 93 of file dsr-errorbuff.h.

References m_nextHop.

Referenced by ns3::dsr::ErrorBuffer::DropLink(), ns3::dsr::ErrorBuffer::Enqueue(), and ns3::dsr::ErrorBuffer::LinkEqual().

+ Here is the caller graph for this function:

Ptr<const Packet> ns3::dsr::ErrorBuffEntry::GetPacket ( ) const
inline
uint8_t ns3::dsr::ErrorBuffEntry::GetProtocol ( ) const
inline

Definition at line 113 of file dsr-errorbuff.h.

References m_protocol.

Ipv4Address ns3::dsr::ErrorBuffEntry::GetSource ( ) const
inline

Definition at line 85 of file dsr-errorbuff.h.

References m_source.

Referenced by ns3::dsr::ErrorBuffer::DropLink(), ns3::dsr::ErrorBuffer::Enqueue(), and ns3::dsr::ErrorBuffer::LinkEqual().

+ Here is the caller graph for this function:

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

Compare send buffer entries

Returns
true if equal

Definition at line 63 of file dsr-errorbuff.h.

References m_dst, m_expire, m_nextHop, m_packet, and m_source.

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

Definition at line 81 of file dsr-errorbuff.h.

References m_dst.

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

Definition at line 101 of file dsr-errorbuff.h.

References m_expire, and ns3::Now().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsr::ErrorBuffEntry::SetNextHop ( Ipv4Address  n)
inline

Definition at line 97 of file dsr-errorbuff.h.

References m_nextHop.

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

Definition at line 73 of file dsr-errorbuff.h.

References m_packet.

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

Definition at line 109 of file dsr-errorbuff.h.

References m_protocol.

void ns3::dsr::ErrorBuffEntry::SetSource ( Ipv4Address  s)
inline

Definition at line 89 of file dsr-errorbuff.h.

References m_source.

Member Data Documentation

Ipv4Address ns3::dsr::ErrorBuffEntry::m_dst
private

Definition at line 122 of file dsr-errorbuff.h.

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

Time ns3::dsr::ErrorBuffEntry::m_expire
private

Definition at line 128 of file dsr-errorbuff.h.

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

Ipv4Address ns3::dsr::ErrorBuffEntry::m_nextHop
private

Definition at line 126 of file dsr-errorbuff.h.

Referenced by GetNextHop(), operator==(), and SetNextHop().

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

Definition at line 120 of file dsr-errorbuff.h.

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

uint8_t ns3::dsr::ErrorBuffEntry::m_protocol
private

Definition at line 130 of file dsr-errorbuff.h.

Referenced by GetProtocol(), and SetProtocol().

Ipv4Address ns3::dsr::ErrorBuffEntry::m_source
private

Definition at line 124 of file dsr-errorbuff.h.

Referenced by GetSource(), operator==(), and SetSource().


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