EMANE  1.2.1
EMANE::Models::TDMA::Queue Class Reference

Downstream packet queue with both FIFO and By-Destination FIFO dequeue mechanisms. More...

#include <queue.h>

Public Member Functions

 Queue ()
 
void initialize (std::uint16_t u16QueueDepth, bool bFragment, bool bAggregate, bool bIsControl)
 
std::pair< std::unique_ptr< DownstreamPacket >, bool > enqueue (DownstreamPacket &&pkt)
 
std::tuple< MessageComponents, size_t, std::list< std::unique_ptr< DownstreamPacket > > > dequeue (size_t requestedBytes, NEMId destination, bool bDrop)
 
std::tuple< size_t, size_t > getStatus () const
 

Detailed Description

Downstream packet queue with both FIFO and By-Destination FIFO dequeue mechanisms.

Definition at line 55 of file queue.h.

Constructor & Destructor Documentation

◆ Queue()

EMANE::Models::TDMA::Queue::Queue ( )

Definition at line 35 of file queue.cc.

Member Function Documentation

◆ dequeue()

std::tuple< EMANE::Models::TDMA::MessageComponents, size_t, std::list< std::unique_ptr< EMANE::DownstreamPacket > > > EMANE::Models::TDMA::Queue::dequeue ( size_t  requestedBytes,
NEMId  destination,
bool  bDrop 
)

Definition at line 127 of file queue.cc.

◆ enqueue()

std::pair< std::unique_ptr< EMANE::DownstreamPacket >, bool > EMANE::Models::TDMA::Queue::enqueue ( DownstreamPacket &&  pkt)

Definition at line 55 of file queue.cc.

◆ getStatus()

std::tuple< size_t, size_t > EMANE::Models::TDMA::Queue::getStatus ( ) const

Definition at line 428 of file queue.cc.

◆ initialize()

void EMANE::Models::TDMA::Queue::initialize ( std::uint16_t  u16QueueDepth,
bool  bFragment,
bool  bAggregate,
bool  bIsControl 
)

Definition at line 43 of file queue.cc.


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