openMSX
Public Member Functions | List of all members
openmsx::CircularBuffer< T, MAXSIZE > Class Template Reference

#include <CircularBuffer.hh>

Inheritance diagram for openmsx::CircularBuffer< T, MAXSIZE >:
Inheritance graph
[legend]

Public Member Functions

 CircularBuffer ()=default
 
void addFront (const T &element)
 
void addBack (const T &element)
 
T & removeFront ()
 
T & removeBack ()
 
T & operator[] (size_t pos)
 
const T & operator[] (size_t pos) const
 
bool isEmpty () const
 
bool isFull () const
 
size_t size () const
 

Detailed Description

template<class T, size_t MAXSIZE>
class openmsx::CircularBuffer< T, MAXSIZE >

Definition at line 9 of file CircularBuffer.hh.

Constructor & Destructor Documentation

◆ CircularBuffer()

template<class T, size_t MAXSIZE>
openmsx::CircularBuffer< T, MAXSIZE >::CircularBuffer ( )
default

Member Function Documentation

◆ addBack()

template<class T, size_t MAXSIZE>
void openmsx::CircularBuffer< T, MAXSIZE >::addBack ( const T &  element)
inline

Definition at line 19 of file CircularBuffer.hh.

Referenced by TEST_CASE().

◆ addFront()

template<class T, size_t MAXSIZE>
void openmsx::CircularBuffer< T, MAXSIZE >::addFront ( const T &  element)
inline

◆ isEmpty()

template<class T, size_t MAXSIZE>
bool openmsx::CircularBuffer< T, MAXSIZE >::isEmpty ( ) const
inline

◆ isFull()

template<class T, size_t MAXSIZE>
bool openmsx::CircularBuffer< T, MAXSIZE >::isFull ( ) const
inline

◆ operator[]() [1/2]

template<class T, size_t MAXSIZE>
T& openmsx::CircularBuffer< T, MAXSIZE >::operator[] ( size_t  pos)
inline

Definition at line 35 of file CircularBuffer.hh.

◆ operator[]() [2/2]

template<class T, size_t MAXSIZE>
const T& openmsx::CircularBuffer< T, MAXSIZE >::operator[] ( size_t  pos) const
inline

Definition at line 43 of file CircularBuffer.hh.

◆ removeBack()

template<class T, size_t MAXSIZE>
T& openmsx::CircularBuffer< T, MAXSIZE >::removeBack ( )
inline

Definition at line 30 of file CircularBuffer.hh.

Referenced by openmsx::Display::repaint(), and TEST_CASE().

◆ removeFront()

template<class T, size_t MAXSIZE>
T& openmsx::CircularBuffer< T, MAXSIZE >::removeFront ( )
inline

Definition at line 24 of file CircularBuffer.hh.

Referenced by TEST_CASE().

◆ size()

template<class T, size_t MAXSIZE>
size_t openmsx::CircularBuffer< T, MAXSIZE >::size ( ) const
inline

Definition at line 52 of file CircularBuffer.hh.

Referenced by TEST_CASE().


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