gem5
v19.0.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 142 of file circlebuf.hh.
typedef T Fifo< T >::value_type |
Definition at line 145 of file circlebuf.hh.
Definition at line 148 of file circlebuf.hh.
|
inline |
Definition at line 153 of file circlebuf.hh.
Referenced by arrayParamIn(), and DmaReadFifo::resumeFillFunctional().
|
inline |
Definition at line 151 of file circlebuf.hh.
|
inline |
Definition at line 155 of file circlebuf.hh.
Referenced by arrayParamIn().
|
inline |
Definition at line 158 of file circlebuf.hh.
Referenced by arrayParamOut().
|
inline |
Definition at line 160 of file circlebuf.hh.
Referenced by DmaReadFifo::tryGet().
|
inline |
Definition at line 152 of file circlebuf.hh.
Referenced by arrayParamOut(), DmaReadFifo::resumeFillFunctional(), DmaReadFifo::resumeFillTiming(), and DmaReadFifo::tryGet().
|
inline |
Definition at line 163 of file circlebuf.hh.
Referenced by arrayParamIn(), DmaReadFifo::handlePending(), and DmaReadFifo::resumeFillFunctional().
|
private |
Definition at line 170 of file circlebuf.hh.