gem5  v20.1.0.0
Public Member Functions | List of all members
QoS::LifoQueuePolicy Class Reference

Last In First Out Queue Policy. More...

#include <q_policy.hh>

Inheritance diagram for QoS::LifoQueuePolicy:
QoS::QueuePolicy

Public Member Functions

 LifoQueuePolicy (const QoSMemCtrlParams *p)
 
PacketQueue::iterator selectPacket (PacketQueue *queue) override
 Implements LIFO packet select policy. More...
 
- Public Member Functions inherited from QoS::QueuePolicy
virtual void enqueuePacket (PacketPtr pkt)
 This method is called by the memory controller after it enqueues a packet. More...
 
void setMemCtrl (MemCtrl *mem)
 Setting a pointer to the Memory Controller implementing the policy. More...
 
virtual ~QueuePolicy ()
 

Additional Inherited Members

- Public Types inherited from QoS::QueuePolicy
typedef std::deque< PacketPtrPacketQueue
 
- Static Public Member Functions inherited from QoS::QueuePolicy
static QueuePolicycreate (const QoSMemCtrlParams *p)
 This factory method is used for generating the queue policy. More...
 
- Protected Member Functions inherited from QoS::QueuePolicy
 QueuePolicy (const QoSMemCtrlParams *p)
 
- Protected Attributes inherited from QoS::QueuePolicy
MemCtrlmemCtrl
 Pointer to parent memory controller implementing the policy. More...
 

Detailed Description

Last In First Out Queue Policy.

Definition at line 114 of file q_policy.hh.

Constructor & Destructor Documentation

◆ LifoQueuePolicy()

QoS::LifoQueuePolicy::LifoQueuePolicy ( const QoSMemCtrlParams *  p)
inline

Definition at line 117 of file q_policy.hh.

Member Function Documentation

◆ selectPacket()

PacketQueue::iterator QoS::LifoQueuePolicy::selectPacket ( PacketQueue queue)
inlineoverridevirtual

Implements LIFO packet select policy.

Parameters
queueThe queue in which to select a packet
Returns
Iterator to the selected packet

Implements QoS::QueuePolicy.

Definition at line 128 of file q_policy.hh.


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

Generated on Wed Sep 30 2020 14:03:08 for gem5 by doxygen 1.8.17