TLM-2.0  2.0.4
Accellera TLM-2.0 proof-of-concept library
tlm::circular_buffer< T > Class Template Reference

#include <tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/circular_buffer.h>

Public Member Functions

 circular_buffer (int size=0)
 
 ~circular_buffer ()
 
void resize (int size)
 
void clear ()
 
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
 

Detailed Description

template<typename T>
class tlm::circular_buffer< T >

Definition at line 32 of file circular_buffer.h.

Constructor & Destructor Documentation

◆ circular_buffer()

template<typename T >
tlm::circular_buffer< T >::circular_buffer ( int  size = 0)
explicit

Definition at line 122 of file circular_buffer.h.

◆ ~circular_buffer()

template<typename T >
tlm::circular_buffer< T >::~circular_buffer ( )

Definition at line 142 of file circular_buffer.h.

Member Function Documentation

◆ clear()

template<typename T >
void tlm::circular_buffer< T >::clear ( )

Definition at line 132 of file circular_buffer.h.

◆ debug()

template<typename T >
void tlm::circular_buffer< T >::debug ( ) const

Definition at line 91 of file circular_buffer.h.

◆ free()

template<typename T>
int tlm::circular_buffer< T >::free ( ) const
inline

Definition at line 51 of file circular_buffer.h.

◆ is_empty()

template<typename T>
bool tlm::circular_buffer< T >::is_empty ( ) const
inline

Definition at line 46 of file circular_buffer.h.

◆ is_full()

template<typename T>
bool tlm::circular_buffer< T >::is_full ( ) const
inline

Definition at line 47 of file circular_buffer.h.

◆ peek_data()

template<typename T>
const T& tlm::circular_buffer< T >::peek_data ( int  i) const
inline

Definition at line 56 of file circular_buffer.h.

◆ poke_data()

template<typename T>
T& tlm::circular_buffer< T >::poke_data ( int  i)
inline

Definition at line 59 of file circular_buffer.h.

◆ read()

template<typename T >
T tlm::circular_buffer< T >::read ( )

Definition at line 192 of file circular_buffer.h.

◆ read_data()

template<typename T>
const T& tlm::circular_buffer< T >::read_data ( ) const
inline

Definition at line 53 of file circular_buffer.h.

◆ resize()

template<typename T >
void tlm::circular_buffer< T >::resize ( int  size)

Definition at line 150 of file circular_buffer.h.

◆ size()

template<typename T>
int tlm::circular_buffer< T >::size ( ) const
inline

Definition at line 49 of file circular_buffer.h.

◆ used()

template<typename T>
int tlm::circular_buffer< T >::used ( ) const
inline

Definition at line 50 of file circular_buffer.h.

◆ write()

template<typename T >
void tlm::circular_buffer< T >::write ( const T &  t)

Definition at line 204 of file circular_buffer.h.


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