SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | List of all members
sc_core::sc_stub< T > Class Template Reference

#include <sysc/communication/sc_stub.h>

Inheritance diagram for sc_core::sc_stub< T >:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_stub< T >:
Collaboration graph
[legend]

Public Types

typedef sc_stub< T > this_type
 

Public Member Functions

 sc_stub (const char *nm)
 
 sc_stub (const char *nm, const T &val)
 
const T & read () const
 
 operator const T & () const
 
virtual void write (const T &)
 
this_typeoperator= (const T &)
 
this_typeoperator= (const sc_signal_in_if< T > &)
 
this_typeoperator= (const this_type &)
 
const char * kind () const
 
void print (::std::ostream &os=::std::cout) const
 
void dump (::std::ostream &os=::std::cout) const
 
const sc_eventdefault_event () const
 
const sc_eventvalue_changed_event () const
 
const sc_eventposedge_event () const
 
const sc_eventnegedge_event () const
 
bool event () const
 
bool posedge () const
 
bool negedge () const
 
const T & get_data_ref () const
 
 ~sc_stub ()
 
virtual const sc_eventvalue_changed_event () const =0
 
virtual const T & read () const =0
 
virtual const T & get_data_ref () const =0
 
virtual bool event () const =0
 
- Public Member Functions inherited from sc_core::sc_interface
virtual void register_port (sc_port_base &port_, const char *if_typename_)
 
virtual const sc_eventdefault_event () const
 
virtual ~sc_interface ()
 
- Public Member Functions inherited from sc_core::sc_signal_write_if< T >
 sc_signal_write_if ()
 
virtual void write (const T &)=0
 
virtual sc_writer_policy get_writer_policy () const
 
- Public Member Functions inherited from sc_core::sc_prim_channel
virtual const char * kind () const
 
bool update_requested ()
 
void request_update ()
 
void async_request_update ()
 
- Public Member Functions inherited from sc_core::sc_object
const char * name () const
 
const char * basename () const
 
virtual void print (::std::ostream &os=::std::cout) const
 
virtual void dump (::std::ostream &os=::std::cout) const
 
virtual void trace (sc_trace_file *tf) const
 
virtual const char * kind () const
 
sc_simcontextsimcontext () const
 
bool add_attribute (sc_attr_base &)
 
sc_attr_baseget_attribute (const std::string &name_)
 
const sc_attr_baseget_attribute (const std::string &name_) const
 
sc_attr_baseremove_attribute (const std::string &name_)
 
void remove_all_attributes ()
 
int num_attributes () const
 
sc_attr_cltnattr_cltn ()
 
const sc_attr_cltnattr_cltn () const
 
virtual const std::vector< sc_event * > & get_child_events () const
 
virtual const std::vector< sc_object * > & get_child_objects () const
 
sc_objectget_parent () const
 
sc_objectget_parent_object () const
 
virtual ~sc_object ()
 

Additional Inherited Members

- Protected Member Functions inherited from sc_core::sc_signal_inout_if< T >
 sc_signal_inout_if ()
 
- Protected Member Functions inherited from sc_core::sc_signal_in_if< T >
 sc_signal_in_if ()
 
- Protected Member Functions inherited from sc_core::sc_interface
 sc_interface ()
 
- Protected Member Functions inherited from sc_core::sc_prim_channel
 sc_prim_channel ()
 
 sc_prim_channel (const char *)
 
virtual ~sc_prim_channel ()
 
virtual void update ()
 
virtual void before_end_of_elaboration ()
 
virtual void end_of_elaboration ()
 
virtual void start_of_simulation ()
 
virtual void end_of_simulation ()
 
void async_attach_suspending ()
 
void async_detach_suspending ()
 
void wait ()
 
void wait (const sc_event &e)
 
void wait (const sc_event_or_list &el)
 
void wait (const sc_event_and_list &el)
 
void wait (const sc_time &t)
 
void wait (double v, sc_time_unit tu)
 
void wait (const sc_time &t, const sc_event &e)
 
void wait (double v, sc_time_unit tu, const sc_event &e)
 
void wait (const sc_time &t, const sc_event_or_list &el)
 
void wait (double v, sc_time_unit tu, const sc_event_or_list &el)
 
void wait (const sc_time &t, const sc_event_and_list &el)
 
void wait (double v, sc_time_unit tu, const sc_event_and_list &el)
 
void wait (int n)
 
void next_trigger ()
 
void next_trigger (const sc_event &e)
 
void next_trigger (const sc_event_or_list &el)
 
void next_trigger (const sc_event_and_list &el)
 
void next_trigger (const sc_time &t)
 
void next_trigger (double v, sc_time_unit tu)
 
void next_trigger (const sc_time &t, const sc_event &e)
 
void next_trigger (double v, sc_time_unit tu, const sc_event &e)
 
void next_trigger (const sc_time &t, const sc_event_or_list &el)
 
void next_trigger (double v, sc_time_unit tu, const sc_event_or_list &el)
 
void next_trigger (const sc_time &t, const sc_event_and_list &el)
 
void next_trigger (double v, sc_time_unit tu, const sc_event_and_list &el)
 
bool timed_out ()
 
- Protected Member Functions inherited from sc_core::sc_object
 sc_object ()
 
 sc_object (const char *nm)
 
 sc_object (const sc_object &)
 
sc_objectoperator= (const sc_object &)
 
virtual hierarchy_scope get_hierarchy_scope ()
 

Detailed Description

template<typename T>
class sc_core::sc_stub< T >

Definition at line 107 of file sc_stub.h.

Member Typedef Documentation

◆ this_type

template<typename T >
typedef sc_stub<T> sc_core::sc_stub< T >::this_type

Definition at line 110 of file sc_stub.h.

Constructor & Destructor Documentation

◆ sc_stub() [1/2]

template<typename T >
sc_core::sc_stub< T >::sc_stub ( const char *  nm)
inlineexplicit

Definition at line 112 of file sc_stub.h.

◆ sc_stub() [2/2]

template<typename T >
sc_core::sc_stub< T >::sc_stub ( const char *  nm,
const T &  val 
)
inlineexplicit

Definition at line 115 of file sc_stub.h.

◆ ~sc_stub()

template<typename T >
sc_core::sc_stub< T >::~sc_stub ( )
inline

Definition at line 147 of file sc_stub.h.

Member Function Documentation

◆ default_event()

template<typename T >
const sc_event & sc_core::sc_stub< T >::default_event ( ) const
inlinevirtual

Reimplemented from sc_core::sc_interface.

Definition at line 136 of file sc_stub.h.

◆ dump()

template<typename T >
void sc_core::sc_stub< T >::dump ( ::std::ostream &  os = ::std::cout) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 132 of file sc_stub.h.

◆ event()

template<typename T >
bool sc_core::sc_stub< T >::event ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 140 of file sc_stub.h.

◆ get_data_ref()

template<typename T >
const T & sc_core::sc_stub< T >::get_data_ref ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 145 of file sc_stub.h.

◆ kind()

template<typename T >
const char * sc_core::sc_stub< T >::kind ( ) const
inlinevirtual

Reimplemented from sc_core::sc_prim_channel.

Definition at line 129 of file sc_stub.h.

◆ negedge()

template<typename T >
bool sc_core::sc_stub< T >::negedge ( ) const
inline

Definition at line 142 of file sc_stub.h.

◆ negedge_event()

template<typename T >
const sc_event & sc_core::sc_stub< T >::negedge_event ( ) const
inline

Definition at line 139 of file sc_stub.h.

◆ operator const T &()

template<typename T >
sc_core::sc_stub< T >::operator const T & ( ) const
inline

Definition at line 121 of file sc_stub.h.

◆ operator=() [1/3]

template<typename T >
this_type & sc_core::sc_stub< T >::operator= ( const sc_signal_in_if< T > &  )
inline

Definition at line 126 of file sc_stub.h.

◆ operator=() [2/3]

template<typename T >
this_type & sc_core::sc_stub< T >::operator= ( const T &  )
inline

Definition at line 125 of file sc_stub.h.

◆ operator=() [3/3]

template<typename T >
this_type & sc_core::sc_stub< T >::operator= ( const this_type )
inline

Definition at line 127 of file sc_stub.h.

◆ posedge()

template<typename T >
bool sc_core::sc_stub< T >::posedge ( ) const
inline

Definition at line 141 of file sc_stub.h.

◆ posedge_event()

template<typename T >
const sc_event & sc_core::sc_stub< T >::posedge_event ( ) const
inline

Definition at line 138 of file sc_stub.h.

◆ print()

template<typename T >
void sc_core::sc_stub< T >::print ( ::std::ostream &  os = ::std::cout) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 131 of file sc_stub.h.

◆ read()

template<typename T >
const T & sc_core::sc_stub< T >::read ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 120 of file sc_stub.h.

◆ value_changed_event()

template<typename T >
const sc_event & sc_core::sc_stub< T >::value_changed_event ( ) const
inlinevirtual

Implements sc_core::sc_signal_in_if< T >.

Definition at line 137 of file sc_stub.h.

◆ write()

template<typename T >
virtual void sc_core::sc_stub< T >::write ( const T &  )
inlinevirtual

Implements sc_core::sc_signal_write_if< T >.

Definition at line 124 of file sc_stub.h.


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