#include <dsr-network-queue.h>
Public Member Functions | |
DsrNetworkQueue () | |
Default c-tor. | |
DsrNetworkQueue (uint32_t maxLen, Time maxDelay) | |
~DsrNetworkQueue () | |
bool | Dequeue (DsrNetworkQueueEntry &entry) |
Return first found (the earliest) entry for given destination. | |
bool | Enqueue (DsrNetworkQueueEntry &entry) |
Push entry in queue, if there is no entry with the same packet and destination address in queue. | |
void | Flush (void) |
Time | GetMaxNetworkDelay (void) const |
uint32_t | GetMaxNetworkSize (void) const |
std::vector < DsrNetworkQueueEntry > & | GetQueue () |
uint32_t | GetSize () |
Number of entries. | |
void | SetMaxNetworkDelay (Time delay) |
void | SetMaxNetworkSize (uint32_t maxSize) |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Start (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeID (void) |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
static void | Cleanup (void) |
Private Member Functions | |
void | Cleanup (void) |
Private Attributes | |
std::vector< DsrNetworkQueueEntry > | m_dsrNetworkQueue |
Time | m_maxDelay |
uint32_t | m_maxSize |
uint32_t | m_size |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
Definition at line 129 of file dsr-network-queue.h.
ns3::dsr::DsrNetworkQueue::DsrNetworkQueue | ( | ) |
ns3::dsr::DsrNetworkQueue::DsrNetworkQueue | ( | uint32_t | maxLen, |
Time | maxDelay | ||
) |
Definition at line 58 of file dsr-network-queue.cc.
References NS_LOG_FUNCTION.
ns3::dsr::DsrNetworkQueue::~DsrNetworkQueue | ( | ) |
Definition at line 71 of file dsr-network-queue.cc.
References Flush(), and NS_LOG_FUNCTION.
|
private |
Definition at line 136 of file dsr-network-queue.cc.
References m_dsrNetworkQueue, m_maxDelay, m_size, ns3::Now(), and NS_LOG_FUNCTION.
Referenced by Dequeue().
bool ns3::dsr::DsrNetworkQueue::Dequeue | ( | DsrNetworkQueueEntry & | entry | ) |
Return first found (the earliest) entry for given destination.
Definition at line 118 of file dsr-network-queue.cc.
References Cleanup(), m_dsrNetworkQueue, m_size, NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrRouting::PriorityScheduler().
bool ns3::dsr::DsrNetworkQueue::Enqueue | ( | DsrNetworkQueueEntry & | entry | ) |
Push entry in queue, if there is no entry with the same packet and destination address in queue.
Definition at line 102 of file dsr-network-queue.cc.
References m_dsrNetworkQueue, m_maxSize, m_size, ns3::Now(), NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::dsr::DsrNetworkQueueEntry::SetInsertedTimeStamp().
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrRouting::SalvagePacket(), ns3::dsr::DsrRouting::SendAck(), ns3::dsr::DsrRouting::SendPacket(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), ns3::dsr::DsrRouting::SendReply(), ns3::dsr::DsrRouting::SendRequest(), and ns3::dsr::DsrRouting::SendUnreachError().
void ns3::dsr::DsrNetworkQueue::Flush | ( | void | ) |
Definition at line 169 of file dsr-network-queue.cc.
References m_dsrNetworkQueue, m_size, and NS_LOG_FUNCTION.
Referenced by ~DsrNetworkQueue().
Time ns3::dsr::DsrNetworkQueue::GetMaxNetworkDelay | ( | void | ) | const |
Definition at line 96 of file dsr-network-queue.cc.
References m_maxDelay.
uint32_t ns3::dsr::DsrNetworkQueue::GetMaxNetworkSize | ( | void | ) | const |
Definition at line 90 of file dsr-network-queue.cc.
References m_maxSize.
|
inline |
Definition at line 150 of file dsr-network-queue.h.
References m_dsrNetworkQueue.
Referenced by ns3::dsr::DsrRouting::IncreaseRetransTimer().
uint32_t ns3::dsr::DsrNetworkQueue::GetSize | ( | ) |
Number of entries.
Definition at line 162 of file dsr-network-queue.cc.
References m_size, and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrRouting::PriorityScheduler().
|
static |
Definition at line 49 of file dsr-network-queue.cc.
References ns3::TypeId::SetParent().
void ns3::dsr::DsrNetworkQueue::SetMaxNetworkDelay | ( | Time | delay | ) |
Definition at line 84 of file dsr-network-queue.cc.
References m_maxDelay.
void ns3::dsr::DsrNetworkQueue::SetMaxNetworkSize | ( | uint32_t | maxSize | ) |
Definition at line 78 of file dsr-network-queue.cc.
References m_maxSize.
|
private |
Definition at line 157 of file dsr-network-queue.h.
Referenced by Cleanup(), Dequeue(), Enqueue(), Flush(), and GetQueue().
|
private |
Definition at line 160 of file dsr-network-queue.h.
Referenced by Cleanup(), GetMaxNetworkDelay(), and SetMaxNetworkDelay().
|
private |
Definition at line 159 of file dsr-network-queue.h.
Referenced by Enqueue(), GetMaxNetworkSize(), and SetMaxNetworkSize().
|
private |