INET Framework for OMNeT++/OMNEST
inet::ieee80211::Ieee80211Queue Class Reference

#include <Ieee80211Queue.h>

Inheritance diagram for inet::ieee80211::Ieee80211Queue:
inet::ieee80211::PendingQueue

Public Member Functions

virtual ~Ieee80211Queue ()
 
 Ieee80211Queue (int maxQueueSize, const char *name)
 
virtual bool insert (Ieee80211DataOrMgmtFrame *frame)
 
virtual bool insertBefore (Ieee80211DataOrMgmtFrame *where, Ieee80211DataOrMgmtFrame *frame)
 
virtual bool insertAfter (Ieee80211DataOrMgmtFrame *where, Ieee80211DataOrMgmtFrame *frame)
 
virtual Ieee80211DataOrMgmtFrameremove (Ieee80211DataOrMgmtFrame *frame)
 
virtual Ieee80211DataOrMgmtFramepop ()
 
virtual Ieee80211DataOrMgmtFramefront () const
 
virtual Ieee80211DataOrMgmtFrameback () const
 
virtual bool contains (Ieee80211DataOrMgmtFrame *frame) const
 
int getNumberOfFrames ()
 
int getMaxQueueSize ()
 

Protected Attributes

int maxQueueSize = -1
 

Constructor & Destructor Documentation

virtual inet::ieee80211::Ieee80211Queue::~Ieee80211Queue ( )
inlinevirtual
33 { }
inet::ieee80211::Ieee80211Queue::Ieee80211Queue ( int  maxQueueSize,
const char *  name 
)
23  :
24  cQueue(name, nullptr)
25 {
26  this->maxQueueSize = maxQueueSize;
27 }
int maxQueueSize
Definition: Ieee80211Queue.h:30

Member Function Documentation

Ieee80211DataOrMgmtFrame * inet::ieee80211::Ieee80211Queue::back ( ) const
virtual
69 {
70  return check_and_cast<Ieee80211DataOrMgmtFrame *>(cQueue::back());
71 }
bool inet::ieee80211::Ieee80211Queue::contains ( Ieee80211DataOrMgmtFrame frame) const
virtual
74 {
75  return cQueue::contains(frame);
76 }
bool contains(const std::vector< T > &v, const T &a)
Definition: stlutils.h:69
Ieee80211DataOrMgmtFrame * inet::ieee80211::Ieee80211Queue::front ( ) const
virtual
64 {
65  return check_and_cast<Ieee80211DataOrMgmtFrame *>(cQueue::front());
66 }
int inet::ieee80211::Ieee80211Queue::getMaxQueueSize ( )
inline
49 { return maxQueueSize; }
int maxQueueSize
Definition: Ieee80211Queue.h:30
int inet::ieee80211::Ieee80211Queue::getNumberOfFrames ( )
inline
48 { return getLength(); }
bool inet::ieee80211::Ieee80211Queue::insert ( Ieee80211DataOrMgmtFrame frame)
virtual

Referenced by inet::ieee80211::Dcf::processUpperFrame().

30 {
31  if (maxQueueSize != -1 && getLength() == maxQueueSize)
32  return false;
33  cQueue::insert(frame);
34  return true;
35 }
void insert(std::vector< T > &v, int pos, const T &a)
Definition: stlutils.h:79
int maxQueueSize
Definition: Ieee80211Queue.h:30
bool inet::ieee80211::Ieee80211Queue::insertAfter ( Ieee80211DataOrMgmtFrame where,
Ieee80211DataOrMgmtFrame frame 
)
virtual
46 {
47  if (maxQueueSize != -1 && getLength() == maxQueueSize)
48  return false;
49  cQueue::insertAfter(where, frame);
50  return true;
51 }
int maxQueueSize
Definition: Ieee80211Queue.h:30
bool inet::ieee80211::Ieee80211Queue::insertBefore ( Ieee80211DataOrMgmtFrame where,
Ieee80211DataOrMgmtFrame frame 
)
virtual
38 {
39  if (maxQueueSize != -1 && getLength() == maxQueueSize)
40  return false;
41  cQueue::insertBefore(where, frame);
42  return true;
43 }
int maxQueueSize
Definition: Ieee80211Queue.h:30
Ieee80211DataOrMgmtFrame * inet::ieee80211::Ieee80211Queue::pop ( )
virtual

Referenced by inet::ieee80211::OriginatorMacDataService::extractFramesToTransmit(), and inet::ieee80211::OriginatorQoSMacDataService::extractFramesToTransmit().

59 {
60  return check_and_cast<Ieee80211DataOrMgmtFrame *>(cQueue::pop());
61 }
Ieee80211DataOrMgmtFrame * inet::ieee80211::Ieee80211Queue::remove ( Ieee80211DataOrMgmtFrame frame)
virtual

Referenced by inet::ieee80211::OriginatorQoSMacDataService::aMsduAggregateIfNeeded().

54 {
55  return check_and_cast<Ieee80211DataOrMgmtFrame *>(cQueue::remove(frame));
56 }
void remove(std::vector< T > &v, const A &a)
Definition: stlutils.h:91

Member Data Documentation

int inet::ieee80211::Ieee80211Queue::maxQueueSize = -1
protected

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