rc_fifo_out_filter Class Template Reference

#include <rc_fifo_filters.h>

Inheritance diagram for rc_fifo_out_filter:

rc_abstract_prim_filter< sc_fifo_out_if< T > > rc_abstract_filter< sc_fifo_out_if< T > > rc_accessor< sc_fifo_out_if< T > > sc_fifo_out_if rc_abstract_accessor< sc_fifo_out_if< T > > rc_abstract_accessor_b rc_interface_wrapper::accessor rc_interface_wrapper_base::accessor_base rc_interface_wrapper_base::accessor_base rc_interface_filter rc_event_filter rc_interface_filter rc_event_filter

List of all members.


Detailed Description

template<class T>
class ReChannel::rc_fifo_out_filter< T >

Predefined FIFO output filter.

Definition at line 161 of file rc_fifo_filters.h.


Public Types

typedef
rc_abstract_prim_filter
< sc_fifo_out_if< T > > 
base_type
typedef
base_type::accessor_type 
accessor_type
typedef
base_type::sync_callback 
sync_callback

Public Member Functions

 rc_fifo_out_filter (int write_limit=-1)
 rc_fifo_out_filter (const sync_callback &func_before, const sync_callback &func_after, int write_limit=-1)
 rc_fifo_out_filter (rc_transaction_counter &tc, int tc_modify=-1, int write_limit=-1)
virtual void write (const T &value)
virtual bool nb_write (const T &value)
virtual int num_free () const
int get_write_limit () const
void set_write_limit (int write_limit_)
int incr_write_limit (int amount_=1)
int decr_write_limit (int amount_=1)
void reset_write_limit ()
virtual rc_event_filterrc_get_event_filter ()
get_last_written () const

Protected Member Functions

virtual void rc_on_target_changed ()
virtual bool rc_on_event (const sc_event &e)
virtual void rc_set_event_trigger (const sc_event &e, rc_event_trigger &t)
virtual void rc_clear_event_trigger (const sc_event &e)
void trigger_read_event ()

Private Attributes

int p_max_free_default
int p_max_free
rc_event_triggerp_event_trigger
p_last_written_value

Member Typedef Documentation

typedef rc_abstract_prim_filter<sc_fifo_out_if<T> > base_type

Reimplemented from rc_abstract_accessor< sc_fifo_out_if< T > >.

Definition at line 165 of file rc_fifo_filters.h.

typedef base_type::accessor_type accessor_type

Reimplemented from rc_abstract_prim_filter< sc_fifo_out_if< T > >.

Definition at line 166 of file rc_fifo_filters.h.

typedef base_type::sync_callback sync_callback

Reimplemented from rc_abstract_prim_filter< sc_fifo_out_if< T > >.

Definition at line 167 of file rc_fifo_filters.h.


Constructor & Destructor Documentation

rc_fifo_out_filter ( int  write_limit = -1  )  [inline, explicit]

Definition at line 403 of file rc_fifo_filters.h.

rc_fifo_out_filter ( const sync_callback func_before,
const sync_callback func_after,
int  write_limit = -1 
) [inline]

Definition at line 410 of file rc_fifo_filters.h.

rc_fifo_out_filter ( rc_transaction_counter tc,
int  tc_modify = -1,
int  write_limit = -1 
) [inline, explicit]

Definition at line 420 of file rc_fifo_filters.h.


Member Function Documentation

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

Definition at line 438 of file rc_fifo_filters.h.

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

Definition at line 450 of file rc_fifo_filters.h.

int num_free (  )  const [inline, virtual]

Definition at line 466 of file rc_fifo_filters.h.

int get_write_limit (  )  const [inline]

Definition at line 191 of file rc_fifo_filters.h.

void set_write_limit ( int  write_limit_  )  [inline]

Definition at line 194 of file rc_fifo_filters.h.

int incr_write_limit ( int  amount_ = 1  )  [inline]

Definition at line 290 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::decr_write_limit().

int decr_write_limit ( int  amount_ = 1  )  [inline]

Definition at line 206 of file rc_fifo_filters.h.

void reset_write_limit (  )  [inline]

Definition at line 209 of file rc_fifo_filters.h.

virtual rc_event_filter* rc_get_event_filter (  )  [inline, virtual]

Reimplemented from rc_abstract_accessor_b.

Definition at line 219 of file rc_fifo_filters.h.

T get_last_written (  )  const [inline]

Definition at line 222 of file rc_fifo_filters.h.

void rc_on_target_changed (  )  [inline, protected, virtual]

Reimplemented from rc_abstract_accessor< sc_fifo_out_if< T > >.

Definition at line 477 of file rc_fifo_filters.h.

virtual bool rc_on_event ( const sc_event &  e  )  [inline, protected, virtual]

Reimplemented from rc_abstract_accessor_b.

Definition at line 229 of file rc_fifo_filters.h.

virtual void rc_set_event_trigger ( const sc_event &  e,
rc_event_trigger t 
) [inline, protected, virtual]

Reimplemented from rc_abstract_accessor_b.

Definition at line 237 of file rc_fifo_filters.h.

virtual void rc_clear_event_trigger ( const sc_event &  e  )  [inline, protected, virtual]

Reimplemented from rc_abstract_accessor_b.

Definition at line 245 of file rc_fifo_filters.h.

void trigger_read_event (  )  [inline, protected]

Definition at line 252 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::incr_write_limit(), rc_fifo_out_filter::reset_write_limit(), and rc_fifo_out_filter::set_write_limit().


Member Data Documentation

int p_max_free_default [private]

Definition at line 261 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::rc_on_target_changed(), and rc_fifo_out_filter::reset_write_limit().

int p_max_free [private]

Definition at line 262 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::get_write_limit(), rc_fifo_out_filter::incr_write_limit(), rc_fifo_out_filter::nb_write(), rc_fifo_out_filter::num_free(), rc_fifo_out_filter::rc_on_event(), rc_fifo_out_filter::rc_on_target_changed(), rc_fifo_out_filter::reset_write_limit(), rc_fifo_out_filter::set_write_limit(), and rc_fifo_out_filter::write().

rc_event_trigger* p_event_trigger [private]

Definition at line 263 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::rc_clear_event_trigger(), rc_fifo_out_filter::rc_set_event_trigger(), and rc_fifo_out_filter::trigger_read_event().

T p_last_written_value [private]

Definition at line 264 of file rc_fifo_filters.h.

Referenced by rc_fifo_out_filter::get_last_written(), rc_fifo_out_filter::nb_write(), and rc_fifo_out_filter::write().


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