resettable_var Class Template Reference

#include <rc_var.h>

Inheritance diagram for resettable_var:

resettable_var_b resettable_var_base rc_resettable

List of all members.


Detailed Description

template<class P, class T, T &(P::*)(void) get_ref>
class ReChannel::internals::resettable_var::resettable_var< P, T, get_ref >

This class represents a resettable variable.

Definition at line 98 of file rc_var.h.


Public Member Functions

 resettable_var ()

Protected Member Functions

virtual void rc_on_reset ()
 Called to request the object for an immediate reset.
virtual void rc_on_init_resettable ()
 Called when the object shall store its state.

Constructor & Destructor Documentation

resettable_var (  )  [inline]

Definition at line 102 of file rc_var.h.


Member Function Documentation

void rc_on_reset (  )  [inline, protected, virtual]

Called to request the object for an immediate reset.

rc_on_reset() is called every time a rc_reconfigurable is activated or deactivated during simulation phase, i.e. normally it will be called twice. An implementation is free to only reset itself either at activation or deactivation.

Attention:
An implementation of this method shall not invoke any wait statements.
Note:
Method should be declared to be "protected".

Implements rc_resettable.

Definition at line 168 of file rc_var.h.

void rc_on_init_resettable (  )  [inline, protected, virtual]

Called when the object shall store its state.

This callback method shall be invoked to give the object opportunity to store its initial state. A good point of time may be directly after SystemC's construction phase has finished.

Remarks:
An implementation of this method shall not invoke any wait statements.
Note:
Method should be declared to be "protected".

Implements rc_resettable.

Definition at line 174 of file rc_var.h.


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