gem5
v20.1.0.0
|
Simple FIFO implementation backed by a circular buffer. More...
#include <circlebuf.hh>
Public Types | |
typedef T | value_type |
Public Member Functions | |
Fifo (size_t size) | |
bool | empty () const |
size_t | size () const |
size_t | capacity () const |
void | flush () |
template<class OutputIterator > | |
void | peek (OutputIterator out, size_t len) const |
template<class OutputIterator > | |
void | read (OutputIterator out, size_t len) |
template<class InputIterator > | |
void | write (InputIterator in, size_t len) |
Private Attributes | |
CircleBuf< value_type > | buf |
Simple FIFO implementation backed by a circular buffer.
This class provides the same basic functionallity as the circular buffer with the folling differences:
Definition at line 140 of file circlebuf.hh.
typedef T Fifo< T >::value_type |
Definition at line 143 of file circlebuf.hh.
Definition at line 146 of file circlebuf.hh.
|
inline |
Definition at line 151 of file circlebuf.hh.
Referenced by arrayParamIn(), DmaReadFifo::resumeFillFunctional(), and Fifo< uint8_t >::write().
|
inline |
Definition at line 149 of file circlebuf.hh.
|
inline |
Definition at line 153 of file circlebuf.hh.
Referenced by arrayParamIn(), and DmaReadFifo::flush().
|
inline |
Definition at line 156 of file circlebuf.hh.
Referenced by arrayParamOut().
|
inline |
Definition at line 158 of file circlebuf.hh.
Referenced by DmaReadFifo::tryGet().
|
inline |
Definition at line 150 of file circlebuf.hh.
Referenced by arrayParamOut(), DmaReadFifo::resumeFillFunctional(), DmaReadFifo::resumeFillTiming(), DmaReadFifo::size(), DmaReadFifo::tryGet(), and Fifo< uint8_t >::write().
|
inline |
Definition at line 161 of file circlebuf.hh.
Referenced by arrayParamIn(), DmaReadFifo::handlePending(), and DmaReadFifo::resumeFillFunctional().
|
private |
Definition at line 168 of file circlebuf.hh.
Referenced by Fifo< uint8_t >::capacity(), Fifo< uint8_t >::empty(), Fifo< uint8_t >::flush(), Fifo< uint8_t >::peek(), Fifo< uint8_t >::read(), Fifo< uint8_t >::size(), and Fifo< uint8_t >::write().