gem5
v20.1.0.0
|
#include <circular_buffer.hh>
Public Member Functions | |
circular_buffer (int size=0) | |
~circular_buffer () | |
void | resize (int size) |
void | clear () |
T | read () |
void | write (const T &) |
bool | is_empty () const |
bool | is_full () const |
int | size () const |
int | used () const |
int | free () const |
const T & | read_data () const |
const T & | peek_data (int i) const |
T & | poke_data (int i) |
void | debug () const |
Private Member Functions | |
void | increment_write_pos (int i=1) |
void | increment_read_pos (int i=1) |
void | init () |
circular_buffer (const circular_buffer< T > &b) | |
circular_buffer< T > & | operator= (const circular_buffer< T > &) |
void * | buf_alloc (int size) |
void | buf_free (void *&buf) |
void | buf_write (void *buf, int n, const T &t) |
T & | buf_read (void *buf, int n) const |
void | buf_clear (void *buf, int n) |
Private Attributes | |
int | m_size |
void * | m_buf |
int | m_free |
int | m_used |
int | m_ri |
int | m_wi |
Definition at line 46 of file circular_buffer.hh.
|
explicit |
Definition at line 129 of file circular_buffer.hh.
tlm::circular_buffer< T >::~circular_buffer |
Definition at line 146 of file circular_buffer.hh.
|
private |
|
inlineprivate |
Definition at line 230 of file circular_buffer.hh.
|
inlineprivate |
Definition at line 261 of file circular_buffer.hh.
|
inlineprivate |
Definition at line 237 of file circular_buffer.hh.
|
inlineprivate |
Definition at line 253 of file circular_buffer.hh.
|
inlineprivate |
Definition at line 245 of file circular_buffer.hh.
void tlm::circular_buffer< T >::clear |
Definition at line 136 of file circular_buffer.hh.
void tlm::circular_buffer< T >::debug |
Definition at line 107 of file circular_buffer.hh.
|
inline |
Definition at line 80 of file circular_buffer.hh.
|
private |
Definition at line 221 of file circular_buffer.hh.
|
private |
Definition at line 212 of file circular_buffer.hh.
|
private |
Definition at line 178 of file circular_buffer.hh.
|
inline |
Definition at line 75 of file circular_buffer.hh.
|
inline |
Definition at line 76 of file circular_buffer.hh.
|
private |
|
inline |
Definition at line 84 of file circular_buffer.hh.
|
inline |
Definition at line 90 of file circular_buffer.hh.
T tlm::circular_buffer< T >::read |
Definition at line 192 of file circular_buffer.hh.
|
inline |
Definition at line 82 of file circular_buffer.hh.
void tlm::circular_buffer< T >::resize | ( | int | size | ) |
Definition at line 154 of file circular_buffer.hh.
|
inline |
Definition at line 78 of file circular_buffer.hh.
|
inline |
Definition at line 79 of file circular_buffer.hh.
void tlm::circular_buffer< T >::write | ( | const T & | t | ) |
Definition at line 204 of file circular_buffer.hh.
|
private |
Definition at line 115 of file circular_buffer.hh.
|
private |
Definition at line 116 of file circular_buffer.hh.
|
private |
Definition at line 118 of file circular_buffer.hh.
|
private |
Definition at line 114 of file circular_buffer.hh.
|
private |
Definition at line 117 of file circular_buffer.hh.
|
private |
Definition at line 119 of file circular_buffer.hh.