gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::TimedQueue< T > Class Template Reference

#include <utility_structs.hh>

Public Member Functions

 TimedQueue (Tick latency)
 
void push (T item, Tick insertion_time)
 
void pop ()
 
front () const
 
bool empty () const
 
size_t size () const
 
bool hasReady (Tick current_time) const
 

Private Attributes

Tick latency
 
std::queue< T > items
 
std::queue< TickinsertionTimes
 

Detailed Description

template<typename T>
class gem5::TimedQueue< T >

Definition at line 44 of file utility_structs.hh.

Constructor & Destructor Documentation

◆ TimedQueue()

template<typename T >
gem5::TimedQueue< T >::TimedQueue ( Tick latency)
inline

Definition at line 53 of file utility_structs.hh.

Member Function Documentation

◆ empty()

template<typename T >
bool gem5::TimedQueue< T >::empty ( ) const
inline

Definition at line 69 of file utility_structs.hh.

References gem5::TimedQueue< T >::items.

Referenced by gem5::TimedQueue< T >::hasReady().

◆ front()

template<typename T >
T gem5::TimedQueue< T >::front ( ) const
inline

Definition at line 67 of file utility_structs.hh.

References gem5::TimedQueue< T >::items.

◆ hasReady()

template<typename T >
bool gem5::TimedQueue< T >::hasReady ( Tick current_time) const
inline

◆ pop()

template<typename T >
void gem5::TimedQueue< T >::pop ( )
inline

◆ push()

template<typename T >
void gem5::TimedQueue< T >::push ( T item,
Tick insertion_time )
inline

◆ size()

template<typename T >
size_t gem5::TimedQueue< T >::size ( ) const
inline

Definition at line 71 of file utility_structs.hh.

References gem5::TimedQueue< T >::items.

Member Data Documentation

◆ insertionTimes

template<typename T >
std::queue<Tick> gem5::TimedQueue< T >::insertionTimes
private

◆ items

◆ latency

template<typename T >
Tick gem5::TimedQueue< T >::latency
private

Definition at line 47 of file utility_structs.hh.

Referenced by gem5::TimedQueue< T >::hasReady().


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0