rc_fifo Class Template Reference

#include <rc_fifo.h>

Inheritance diagram for rc_fifo:

sc_fifo_in_if sc_fifo_out_if rc_prim_channel rc_resettable

List of all members.


Detailed Description

template<class T>
class ReChannel::rc_fifo< T >

Resettable representation of sc_fifo.

Definition at line 50 of file rc_fifo.h.


Public Member Functions

 rc_fifo (int size_=16)
 rc_fifo (const char *name_, int size_=16)
virtual const char * kind () const
virtual void register_port (sc_port_base &port_, const char *if_name_)
virtual void read (T &value)
virtual T read ()
virtual bool nb_read (T &value)
virtual int num_available () const
virtual void write (const T &value)
virtual bool nb_write (const T &value)
virtual int num_free () const
virtual const sc_event & data_written_event () const
virtual const sc_event & data_read_event () const
 operator T ()
rc_fifo< T > & operator= (const T &value)
virtual void print (std::ostream &os=std::cout) const
virtual void dump (std::ostream &os=std::cout) const

Protected Member Functions

virtual void update ()
 RC_ON_INIT_RESETTABLE ()
 RC_ON_RESET ()

Protected Attributes

std::deque< T > m_deque
const unsigned int m_max_size
unsigned int m_num_read
unsigned int m_num_written
sc_event m_data_read_event
sc_event m_data_written_event
const sc_port_base * m_reader_port
const sc_port_base * m_writer_port
std::vector< T > m_reset_values

Private Member Functions

 rc_fifo (const rc_fifo< T > &other)
rc_fifo< T > & operator= (const rc_fifo< T > &other)

Constructor & Destructor Documentation

rc_fifo ( int  size_ = 16  )  [inline, explicit]

Definition at line 57 of file rc_fifo.h.

rc_fifo ( const char *  name_,
int  size_ = 16 
) [inline, explicit]

Definition at line 63 of file rc_fifo.h.

rc_fifo ( const rc_fifo< T > &  other  )  [private]


Member Function Documentation

virtual const char* kind (  )  const [inline, virtual]

Definition at line 69 of file rc_fifo.h.

void register_port ( sc_port_base &  port_,
const char *  if_name_ 
) [inline, virtual]

Definition at line 229 of file rc_fifo.h.

void read ( T &  value  )  [inline, virtual]

Definition at line 169 of file rc_fifo.h.

T read (  )  [inline, virtual]

Definition at line 181 of file rc_fifo.h.

Referenced by rc_fifo::operator T().

bool nb_read ( T &  value  )  [inline, virtual]

Definition at line 189 of file rc_fifo.h.

int num_available (  )  const [inline, virtual]

Definition at line 151 of file rc_fifo.h.

void write ( const T &  value  )  [inline, virtual]

Definition at line 203 of file rc_fifo.h.

Referenced by rc_fifo::operator=().

bool nb_write ( const T &  value  )  [inline, virtual]

Definition at line 214 of file rc_fifo.h.

int num_free (  )  const [inline, virtual]

Definition at line 160 of file rc_fifo.h.

virtual const sc_event& data_written_event (  )  const [inline, virtual]

Definition at line 83 of file rc_fifo.h.

virtual const sc_event& data_read_event (  )  const [inline, virtual]

Definition at line 85 of file rc_fifo.h.

operator T (  )  [inline]

Definition at line 88 of file rc_fifo.h.

rc_fifo<T>& operator= ( const T &  value  )  [inline]

Definition at line 91 of file rc_fifo.h.

void print ( std::ostream &  os = std::cout  )  const [inline, virtual]

Definition at line 251 of file rc_fifo.h.

void dump ( std::ostream &  os = std::cout  )  const [inline, virtual]

Definition at line 263 of file rc_fifo.h.

void update (  )  [inline, protected, virtual]

Definition at line 277 of file rc_fifo.h.

RC_ON_INIT_RESETTABLE (  )  [inline, protected]

Reimplemented from rc_prim_channel.

Definition at line 101 of file rc_fifo.h.

RC_ON_RESET (  )  [inline, protected]

Reimplemented from rc_prim_channel.

Definition at line 110 of file rc_fifo.h.

rc_fifo<T>& operator= ( const rc_fifo< T > &  other  )  [private]


Member Data Documentation

std::deque<T> m_deque [protected]

Definition at line 129 of file rc_fifo.h.

Referenced by rc_fifo::dump(), rc_fifo::nb_read(), rc_fifo::nb_write(), rc_fifo::num_available(), rc_fifo::num_free(), rc_fifo::print(), rc_fifo::RC_ON_INIT_RESETTABLE(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::write().

const unsigned int m_max_size [protected]

Definition at line 130 of file rc_fifo.h.

Referenced by rc_fifo::num_free().

unsigned int m_num_read [protected]

Definition at line 131 of file rc_fifo.h.

Referenced by rc_fifo::nb_read(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::update().

unsigned int m_num_written [protected]

Definition at line 132 of file rc_fifo.h.

Referenced by rc_fifo::nb_write(), rc_fifo::num_available(), rc_fifo::RC_ON_RESET(), rc_fifo::update(), and rc_fifo::write().

sc_event m_data_read_event [protected]

Definition at line 134 of file rc_fifo.h.

Referenced by rc_fifo::data_read_event(), rc_fifo::RC_ON_RESET(), rc_fifo::update(), and rc_fifo::write().

sc_event m_data_written_event [protected]

Definition at line 135 of file rc_fifo.h.

Referenced by rc_fifo::data_written_event(), rc_fifo::RC_ON_RESET(), rc_fifo::read(), and rc_fifo::update().

const sc_port_base* m_reader_port [protected]

Definition at line 137 of file rc_fifo.h.

Referenced by rc_fifo::register_port().

const sc_port_base* m_writer_port [protected]

Definition at line 138 of file rc_fifo.h.

Referenced by rc_fifo::register_port().

std::vector<T> m_reset_values [protected]

Definition at line 140 of file rc_fifo.h.

Referenced by rc_fifo::RC_ON_INIT_RESETTABLE(), and rc_fifo::RC_ON_RESET().


The documentation for this class was generated from the following file:
Generated on Tue Jan 1 23:14:12 2008 for ReChannel by  doxygen 1.5.3