gem5 [DEVELOP-FOR-25.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.

References latency.

Member Function Documentation

◆ empty()

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

Definition at line 69 of file utility_structs.hh.

References items.

Referenced by hasReady().

◆ front()

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

Definition at line 67 of file utility_structs.hh.

References items.

◆ hasReady()

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

Definition at line 73 of file utility_structs.hh.

References empty(), insertionTimes, and latency.

◆ pop()

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

Definition at line 61 of file utility_structs.hh.

References insertionTimes, and items.

◆ push()

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

Definition at line 55 of file utility_structs.hh.

References insertionTimes, and items.

◆ size()

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

Definition at line 71 of file utility_structs.hh.

References items.

Member Data Documentation

◆ insertionTimes

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

Definition at line 50 of file utility_structs.hh.

Referenced by hasReady(), pop(), and push().

◆ items

template<typename T>
std::queue<T> gem5::TimedQueue< T >::items
private

Definition at line 49 of file utility_structs.hh.

Referenced by empty(), front(), pop(), push(), and size().

◆ latency

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

Definition at line 47 of file utility_structs.hh.

Referenced by hasReady(), and TimedQueue().


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

Generated on Mon May 26 2025 09:19:26 for gem5 by doxygen 1.13.2