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

#include <sysc/communication/sc_signal_ports.h>

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

Public Types

typedef T data_type
 
typedef sc_signal_in_if< data_typeif_type
 
typedef sc_port< if_type, 1, SC_ONE_OR_MORE_BOUNDbase_type
 
typedef sc_in< data_typethis_type
 
typedef base_type::port_type base_port_type
 
typedef if_type in_if_type
 
typedef base_type in_port_type
 
typedef sc_signal_inout_if< data_typeinout_if_type
 
typedef sc_port< inout_if_type, 1, SC_ONE_OR_MORE_BOUNDinout_port_type
 
- Public Types inherited from sc_core::sc_port_b< sc_signal_in_if< T > >
typedef sc_port_base base_type
 
typedef sc_port_b< sc_signal_in_if< T > > this_type
 
typedef this_type port_type
 
- Public Types inherited from sc_core::sc_port_base
typedef sc_port_base this_type
 

Public Member Functions

 sc_in ()
 
 sc_in (const char *name_)
 
 sc_in (const in_if_type &interface_)
 
 sc_in (const char *name_, const in_if_type &interface_)
 
 sc_in (in_port_type &parent_)
 
 sc_in (const char *name_, in_port_type &parent_)
 
 sc_in (inout_port_type &parent_)
 
 sc_in (const char *name_, inout_port_type &parent_)
 
 sc_in (this_type &parent_)
 
 sc_in (const char *name_, this_type &parent_)
 
virtual ~sc_in ()
 
virtual void bind (const in_if_type &interface_)
 
virtual void bind (in_if_type &interface_)
 
void operator() (const in_if_type &interface_)
 
virtual void bind (in_port_type &parent_)
 
void operator() (in_port_type &parent_)
 
virtual void bind (inout_port_type &parent_)
 
void operator() (inout_port_type &parent_)
 
const sc_eventdefault_event () const
 
const sc_eventvalue_changed_event () const
 
const data_typeread () const
 
 operator const data_type & () const
 
bool event () const
 
sc_event_findervalue_changed () const
 
virtual void end_of_elaboration ()
 
virtual const char * kind () const
 
void add_trace (sc_trace_file *, const std::string &) const
 
void add_trace_internal (sc_trace_file *, const std::string &) const
 
- Public Member Functions inherited from sc_core::sc_port< sc_signal_in_if< T >, 1, SC_ONE_OR_MORE_BOUND >
 sc_port ()
 
 sc_port (const char *name_)
 
 sc_port (sc_signal_in_if< T > &interface_)
 
 sc_port (const char *name_, sc_signal_in_if< T > &interface_)
 
 sc_port (base_type &parent_)
 
 sc_port (const char *name_, base_type &parent_)
 
 sc_port (this_type &parent_)
 
 sc_port (const char *name_, this_type &parent_)
 
virtual ~sc_port ()
 
virtual const char * kind () const
 
- Public Member Functions inherited from sc_core::sc_port_b< sc_signal_in_if< T > >
virtual void bind (sc_signal_in_if< T > &interface_)
 
virtual void bind (port_type &parent_)
 
void operator() (sc_signal_in_if< T > &interface_)
 
void operator() (port_type &parent_)
 
int size () const
 
sc_signal_in_if< T > * operator-> ()
 
const sc_signal_in_if< T > * operator-> () const
 
const sc_signal_in_if< T > * get_interface (int iface_i) const
 
sc_signal_in_if< T > * get_interface (int iface_i)
 
virtual sc_interfaceget_interface ()
 
virtual const sc_interfaceget_interface () const
 
sc_signal_in_if< T > * operator[] (int index_)
 
const sc_signal_in_if< T > * operator[] (int index_) const
 
virtual std::type_index get_interface_type () const
 
- Public Member Functions inherited from sc_core::sc_port_base
int bind_count ()
 
virtual sc_interfaceget_interface ()=0
 
virtual const sc_interfaceget_interface () const =0
 
virtual const char * kind () const
 
virtual std::type_index get_interface_type () const =0
 
- 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 ()
 

Protected Member Functions

void remove_traces () const
 
virtual int vbind (sc_interface &)
 
virtual int vbind (sc_port_base &)
 
virtual void bind (base_port_type &parent_)
 
- Protected Member Functions inherited from sc_core::sc_port_b< sc_signal_in_if< T > >
 sc_port_b (int max_size_, sc_port_policy policy=SC_ONE_OR_MORE_BOUND)
 
 sc_port_b (const char *name_, int max_size_, sc_port_policy policy=SC_ONE_OR_MORE_BOUND)
 
virtual ~sc_port_b ()
 
virtual int vbind (sc_interface &)
 
virtual int vbind (sc_port_base &)
 
virtual void make_sensitive (sc_thread_handle, sc_event_finder *=0) const
 
virtual void make_sensitive (sc_method_handle, sc_event_finder *=0) const
 
- Protected Member Functions inherited from sc_core::sc_port_base
 sc_port_base (int max_size_, sc_port_policy policy=SC_ONE_OR_MORE_BOUND)
 
 sc_port_base (const char *name_, int max_size_, sc_port_policy policy=SC_ONE_OR_MORE_BOUND)
 
virtual ~sc_port_base ()
 
void bind (sc_interface &interface_)
 
void bind (this_type &parent_)
 
virtual int vbind (sc_interface &)=0
 
virtual int vbind (sc_port_base &)=0
 
virtual void before_end_of_elaboration ()
 
virtual void end_of_elaboration ()
 
virtual void start_of_simulation ()
 
virtual void end_of_simulation ()
 
void report_error (const char *id, const char *add_msg=0) const
 
virtual void make_sensitive (sc_thread_handle, sc_event_finder *=0) const
 
virtual void make_sensitive (sc_method_handle, sc_event_finder *=0) const
 
void add_static_event (sc_method_handle process_p, const sc_event &event) const
 
void add_static_event (sc_thread_handle process_p, const sc_event &event) const
 
- 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 ()
 

Protected Attributes

sc_trace_params_vecm_traces
 
- Protected Attributes inherited from sc_core::sc_port_base
sc_bind_info * m_bind_info
 

Detailed Description

template<class T>
class sc_core::sc_in< T >

Definition at line 76 of file sc_signal_ports.h.

Member Typedef Documentation

◆ base_port_type

template<class T >
typedef base_type::port_type sc_core::sc_in< T >::base_port_type

Definition at line 88 of file sc_signal_ports.h.

◆ base_type

template<class T >
typedef sc_port<if_type,1,SC_ONE_OR_MORE_BOUND> sc_core::sc_in< T >::base_type

Definition at line 86 of file sc_signal_ports.h.

◆ data_type

template<class T >
typedef T sc_core::sc_in< T >::data_type

Definition at line 83 of file sc_signal_ports.h.

◆ if_type

template<class T >
typedef sc_signal_in_if<data_type> sc_core::sc_in< T >::if_type

Definition at line 85 of file sc_signal_ports.h.

◆ in_if_type

template<class T >
typedef if_type sc_core::sc_in< T >::in_if_type

Definition at line 90 of file sc_signal_ports.h.

◆ in_port_type

template<class T >
typedef base_type sc_core::sc_in< T >::in_port_type

Definition at line 91 of file sc_signal_ports.h.

◆ inout_if_type

template<class T >
typedef sc_signal_inout_if<data_type> sc_core::sc_in< T >::inout_if_type

Definition at line 92 of file sc_signal_ports.h.

◆ inout_port_type

template<class T >
typedef sc_port<inout_if_type,1,SC_ONE_OR_MORE_BOUND> sc_core::sc_in< T >::inout_port_type

Definition at line 93 of file sc_signal_ports.h.

◆ this_type

template<class T >
typedef sc_in<data_type> sc_core::sc_in< T >::this_type

Definition at line 87 of file sc_signal_ports.h.

Constructor & Destructor Documentation

◆ sc_in() [1/10]

template<class T >
sc_core::sc_in< T >::sc_in ( )
inline

Definition at line 99 of file sc_signal_ports.h.

◆ sc_in() [2/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const char *  name_)
inlineexplicit

Definition at line 104 of file sc_signal_ports.h.

◆ sc_in() [3/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const in_if_type interface_)
inlineexplicit

Definition at line 109 of file sc_signal_ports.h.

◆ sc_in() [4/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const char *  name_,
const in_if_type interface_ 
)
inline

Definition at line 114 of file sc_signal_ports.h.

◆ sc_in() [5/10]

template<class T >
sc_core::sc_in< T >::sc_in ( in_port_type parent_)
inlineexplicit

Definition at line 119 of file sc_signal_ports.h.

◆ sc_in() [6/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const char *  name_,
in_port_type parent_ 
)
inline

Definition at line 124 of file sc_signal_ports.h.

◆ sc_in() [7/10]

template<class T >
sc_core::sc_in< T >::sc_in ( inout_port_type parent_)
inlineexplicit

Definition at line 129 of file sc_signal_ports.h.

◆ sc_in() [8/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const char *  name_,
inout_port_type parent_ 
)
inline

Definition at line 134 of file sc_signal_ports.h.

◆ sc_in() [9/10]

template<class T >
sc_core::sc_in< T >::sc_in ( this_type parent_)
inline

Definition at line 139 of file sc_signal_ports.h.

◆ sc_in() [10/10]

template<class T >
sc_core::sc_in< T >::sc_in ( const char *  name_,
this_type parent_ 
)
inline

Definition at line 144 of file sc_signal_ports.h.

◆ ~sc_in()

template<class T >
virtual sc_core::sc_in< T >::~sc_in ( )
inlinevirtual

Definition at line 152 of file sc_signal_ports.h.

Member Function Documentation

◆ add_trace()

template<class T >
void sc_core::sc_in< T >::add_trace ( sc_trace_file tf_,
const std::string &  name_ 
) const
inline

Definition at line 327 of file sc_signal_ports.h.

◆ add_trace_internal()

template<class T >
void sc_core::sc_in< T >::add_trace_internal ( sc_trace_file tf_,
const std::string &  name_ 
) const
inline

Definition at line 313 of file sc_signal_ports.h.

◆ bind() [1/5]

template<class T >
virtual void sc_core::sc_in< T >::bind ( base_port_type parent_)
inlineprotectedvirtual

Reimplemented from sc_core::sc_port_b< sc_signal_in_if< T > >.

Definition at line 259 of file sc_signal_ports.h.

◆ bind() [2/5]

template<class T >
virtual void sc_core::sc_in< T >::bind ( const in_if_type interface_)
inlinevirtual

Definition at line 161 of file sc_signal_ports.h.

◆ bind() [3/5]

template<class T >
virtual void sc_core::sc_in< T >::bind ( in_if_type interface_)
inlinevirtual

Definition at line 164 of file sc_signal_ports.h.

◆ bind() [4/5]

template<class T >
virtual void sc_core::sc_in< T >::bind ( in_port_type parent_)
inlinevirtual

Definition at line 173 of file sc_signal_ports.h.

◆ bind() [5/5]

template<class T >
virtual void sc_core::sc_in< T >::bind ( inout_port_type parent_)
inlinevirtual

Definition at line 182 of file sc_signal_ports.h.

◆ default_event()

template<class T >
const sc_event & sc_core::sc_in< T >::default_event ( ) const
inline

Definition at line 193 of file sc_signal_ports.h.

◆ end_of_elaboration()

template<class T >
void sc_core::sc_in< T >::end_of_elaboration
inlinevirtual

Reimplemented from sc_core::sc_port_base.

Reimplemented in sc_core::sc_in_rv< W >.

Definition at line 295 of file sc_signal_ports.h.

◆ event()

template<class T >
bool sc_core::sc_in< T >::event ( ) const
inline

Definition at line 214 of file sc_signal_ports.h.

◆ kind()

template<class T >
virtual const char * sc_core::sc_in< T >::kind ( ) const
inlinevirtual

◆ operator const data_type &()

template<class T >
sc_core::sc_in< T >::operator const data_type & ( ) const
inline

Definition at line 208 of file sc_signal_ports.h.

◆ operator()() [1/3]

template<class T >
void sc_core::sc_in< T >::operator() ( const in_if_type interface_)
inline

Definition at line 167 of file sc_signal_ports.h.

◆ operator()() [2/3]

template<class T >
void sc_core::sc_in< T >::operator() ( in_port_type parent_)
inline

Definition at line 176 of file sc_signal_ports.h.

◆ operator()() [3/3]

template<class T >
void sc_core::sc_in< T >::operator() ( inout_port_type parent_)
inline

Definition at line 185 of file sc_signal_ports.h.

◆ read()

template<class T >
const data_type & sc_core::sc_in< T >::read ( ) const
inline

Definition at line 205 of file sc_signal_ports.h.

◆ remove_traces()

template<class T >
void sc_core::sc_in< T >::remove_traces
inlineprotected

Definition at line 337 of file sc_signal_ports.h.

◆ value_changed()

template<class T >
sc_event_finder & sc_core::sc_in< T >::value_changed ( ) const
inline

Definition at line 220 of file sc_signal_ports.h.

◆ value_changed_event()

template<class T >
const sc_event & sc_core::sc_in< T >::value_changed_event ( ) const
inline

Definition at line 199 of file sc_signal_ports.h.

◆ vbind() [1/2]

template<class T >
int sc_core::sc_in< T >::vbind ( sc_interface interface_)
inlineprotectedvirtual

Reimplemented from sc_core::sc_port_b< sc_signal_in_if< T > >.

Definition at line 354 of file sc_signal_ports.h.

◆ vbind() [2/2]

template<class T >
int sc_core::sc_in< T >::vbind ( sc_port_base parent_)
inlineprotectedvirtual

Reimplemented from sc_core::sc_port_b< sc_signal_in_if< T > >.

Definition at line 362 of file sc_signal_ports.h.

Member Data Documentation

◆ m_traces

template<class T >
sc_trace_params_vec* sc_core::sc_in< T >::m_traces
mutableprotected

Definition at line 246 of file sc_signal_ports.h.


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