#include <senf/Ext/NetEmu/Modules/REDQueue.hh>

Inheritance diagram for senf::emu::REDQueue:

Public Types

typedef std::pair< std::uint32_t, std::uint8_t > limit_t
 
- Public Types inherited from senf::ppi::QueueingAlgorithm
typedef std::unique_ptr< QueueingAlgorithmptr
 

Public Member Functions

 REDQueue (std::uint32_t _limit=16384, std::uint8_t lowThreshPrecentage=25)
 
void limit (std::uint32_t bytes, std::uint8_t lowThreshPrecentage=25)
 
limit_t limit () const
 
std::uint32_t dropped () const
 
void incrDropped ()
 
void resetDropped ()
 
- Public Member Functions inherited from senf::ppi::QueueingAlgorithm
virtual ~QueueingAlgorithm ()
 
console::DirectoryNodeconsoleDir ()
 
void pop ()
 
Packet const & front () const
 
bool enqueue (Packet const &packet, bool force=false)
 
unsigned size () const
 
unsigned peek (unsigned maxSize=0x7fffffff) const
 
void clear ()
 
bool empty () const
 

Static Public Member Functions

static ppi::QueueingAlgorithm::ptr create ()
 

Additional Inherited Members

- Protected Member Functions inherited from senf::ppi::QueueingAlgorithm
 QueueingAlgorithm ()
 

Detailed Description

Definition at line 29 of file REDQueue.hh.

Member Typedef Documentation

◆ limit_t

typedef std::pair<std::uint32_t,std::uint8_t> senf::emu::REDQueue::limit_t

Definition at line 36 of file REDQueue.hh.

Constructor & Destructor Documentation

◆ REDQueue()

senf::emu::REDQueue::REDQueue ( std::uint32_t  _limit = 16384,
std::uint8_t  lowThreshPrecentage = 25 
)

Definition at line 33 of file REDQueue.cc.

Member Function Documentation

◆ create()

senf::ppi::QueueingAlgorithm::ptr senf::emu::REDQueue::create ( )
static

Definition at line 28 of file REDQueue.cc.

◆ dropped()

boost::uint32_t senf::emu::REDQueue::dropped ( ) const

Definition at line 89 of file REDQueue.cc.

◆ incrDropped()

void senf::emu::REDQueue::incrDropped ( )

◆ limit() [1/2]

void senf::emu::REDQueue::limit ( std::uint32_t  bytes,
std::uint8_t  lowThreshPrecentage = 25 
)

◆ limit() [2/2]

senf::emu::REDQueue::limit_t senf::emu::REDQueue::limit ( ) const

Definition at line 83 of file REDQueue.cc.

◆ resetDropped()

void senf::emu::REDQueue::resetDropped ( )

Definition at line 95 of file REDQueue.cc.


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