EMANE
1.2.1
|
Provides a queue implementation for the RFPipe Mac layer. More...
#include <downstreamqueue.h>
Public Member Functions | |
DownstreamQueue () | |
Constructor. More... | |
~DownstreamQueue () | |
Destructor. More... | |
void | registerStatistics (StatisticRegistrar &statisticRegistrar) |
size_t | getNumDiscards (bool bClear) |
Returns the number of discards. More... | |
size_t | getCurrentDepth () |
Returns the current size of the queue. More... | |
size_t | getMaxCapacity () |
Returns the max size of the queue. More... | |
std::pair< DownstreamQueueEntry, bool > | dequeue () |
removes an element from the queue More... | |
std::vector< DownstreamQueueEntry > | enqueue (DownstreamQueueEntry &entry) |
Adds an element to the queue. More... | |
const DownstreamQueueEntry & | peek () |
Returns a reference to the element to be pop'd next. More... | |
Provides a queue implementation for the RFPipe Mac layer.
Definition at line 101 of file rfpipe/downstreamqueue.h.
EMANE::Models::RFPipe::DownstreamQueue::DownstreamQueue | ( | ) |
Constructor.
Definition at line 42 of file rfpipe/downstreamqueue.cc.
EMANE::Models::RFPipe::DownstreamQueue::~DownstreamQueue | ( | ) |
Destructor.
Definition at line 49 of file rfpipe/downstreamqueue.cc.
std::pair< EMANE::Models::RFPipe::DownstreamQueueEntry, bool > EMANE::Models::RFPipe::DownstreamQueue::dequeue | ( | ) |
removes an element from the queue
Definition at line 91 of file rfpipe/downstreamqueue.cc.
std::vector< EMANE::Models::RFPipe::DownstreamQueueEntry > EMANE::Models::RFPipe::DownstreamQueue::enqueue | ( | DownstreamQueueEntry & | entry | ) |
Adds an element to the queue.
entry | the entry to be added to the queue |
Definition at line 107 of file rfpipe/downstreamqueue.cc.
size_t EMANE::Models::RFPipe::DownstreamQueue::getCurrentDepth | ( | ) |
Returns the current size of the queue.
size_t | current size of the queue |
Definition at line 77 of file rfpipe/downstreamqueue.cc.
size_t EMANE::Models::RFPipe::DownstreamQueue::getMaxCapacity | ( | ) |
Returns the max size of the queue.
size_t | max size of the queue |
Definition at line 84 of file rfpipe/downstreamqueue.cc.
size_t EMANE::Models::RFPipe::DownstreamQueue::getNumDiscards | ( | bool | bClear | ) |
Returns the number of discards.
bClear | clear counter |
size_t | num of packets discarded |
Definition at line 63 of file rfpipe/downstreamqueue.cc.
const EMANE::Models::RFPipe::DownstreamQueueEntry & EMANE::Models::RFPipe::DownstreamQueue::peek | ( | ) |
Returns a reference to the element to be pop'd next.
Definition at line 134 of file rfpipe/downstreamqueue.cc.
void EMANE::Models::RFPipe::DownstreamQueue::registerStatistics | ( | StatisticRegistrar & | statisticRegistrar | ) |
Definition at line 53 of file rfpipe/downstreamqueue.cc.