openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::SchedulerQueue< T > Class Template Reference

#include <SchedulerQueue.hh>

Inheritance diagram for openmsx::SchedulerQueue< T >:
Inheritance graph
[legend]

Public Member Functions

 SchedulerQueue ()
 
size_t capacity () const
 
size_t spareFront () const
 
size_t spareBack () const
 
size_t size () const
 
bool empty () const
 
T & front ()
 
const T & front () const
 
T * begin ()
 
const T * begin () const
 
T * end ()
 
const T * end () const
 
void insert (const T &t, std::invocable< T & > auto setSentinel, std::equivalence_relation< T, T > auto less)
 
void remove_front ()
 
bool remove (std::predicate< T > auto p)
 
void remove_all (std::predicate< T > auto p)
 

Static Public Attributes

static constexpr int CAPACITY = 32
 
static constexpr int SPARE_FRONT = 1
 

Detailed Description

template<typename T>
class openmsx::SchedulerQueue< T >

Definition at line 19 of file SchedulerQueue.hh.

Constructor & Destructor Documentation

◆ SchedulerQueue()

template<typename T >
openmsx::SchedulerQueue< T >::SchedulerQueue ( )
inline

Definition at line 24 of file SchedulerQueue.hh.

Member Function Documentation

◆ begin() [1/2]

template<typename T >
T * openmsx::SchedulerQueue< T >::begin ( )
inline

Definition at line 43 of file SchedulerQueue.hh.

◆ begin() [2/2]

template<typename T >
const T * openmsx::SchedulerQueue< T >::begin ( ) const
inline

Definition at line 44 of file SchedulerQueue.hh.

◆ capacity()

template<typename T >
size_t openmsx::SchedulerQueue< T >::capacity ( ) const
inline

Definition at line 32 of file SchedulerQueue.hh.

◆ empty()

template<typename T >
bool openmsx::SchedulerQueue< T >::empty ( ) const
inline

Definition at line 36 of file SchedulerQueue.hh.

Referenced by openmsx::SchedulerQueue< T >::remove_front().

◆ end() [1/2]

template<typename T >
T * openmsx::SchedulerQueue< T >::end ( )
inline

Definition at line 45 of file SchedulerQueue.hh.

◆ end() [2/2]

template<typename T >
const T * openmsx::SchedulerQueue< T >::end ( ) const
inline

Definition at line 46 of file SchedulerQueue.hh.

◆ front() [1/2]

template<typename T >
T & openmsx::SchedulerQueue< T >::front ( )
inline

Definition at line 40 of file SchedulerQueue.hh.

◆ front() [2/2]

template<typename T >
const T & openmsx::SchedulerQueue< T >::front ( ) const
inline

Definition at line 41 of file SchedulerQueue.hh.

◆ insert()

template<typename T >
void openmsx::SchedulerQueue< T >::insert ( const T &  t,
std::invocable< T & > auto  setSentinel,
std::equivalence_relation< T, T > auto  less 
)
inline

Definition at line 55 of file SchedulerQueue.hh.

References t.

◆ remove()

template<typename T >
bool openmsx::SchedulerQueue< T >::remove ( std::predicate< T > auto  p)
inline

Definition at line 90 of file SchedulerQueue.hh.

◆ remove_all()

template<typename T >
void openmsx::SchedulerQueue< T >::remove_all ( std::predicate< T > auto  p)
inline

Definition at line 106 of file SchedulerQueue.hh.

◆ remove_front()

template<typename T >
void openmsx::SchedulerQueue< T >::remove_front ( )
inline

Definition at line 83 of file SchedulerQueue.hh.

References openmsx::SchedulerQueue< T >::empty().

◆ size()

template<typename T >
size_t openmsx::SchedulerQueue< T >::size ( ) const
inline

Definition at line 35 of file SchedulerQueue.hh.

◆ spareBack()

template<typename T >
size_t openmsx::SchedulerQueue< T >::spareBack ( ) const
inline

Definition at line 34 of file SchedulerQueue.hh.

◆ spareFront()

template<typename T >
size_t openmsx::SchedulerQueue< T >::spareFront ( ) const
inline

Definition at line 33 of file SchedulerQueue.hh.

Member Data Documentation

◆ CAPACITY

template<typename T >
constexpr int openmsx::SchedulerQueue< T >::CAPACITY = 32
staticconstexpr

Definition at line 22 of file SchedulerQueue.hh.

◆ SPARE_FRONT

template<typename T >
constexpr int openmsx::SchedulerQueue< T >::SPARE_FRONT = 1
staticconstexpr

Definition at line 23 of file SchedulerQueue.hh.


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