Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_port_base Class Reference

#include <sc_port.h>

Inheritance diagram for sc_port_base:

Inheritance graph
[legend]
Collaboration diagram for sc_port_base:

Collaboration graph
[legend]
List of all members.

Public Types

typedef sc_port_base this_type

Public Methods

virtual sc_interfaceget_interface ()=0
virtual const sc_interfaceget_interface () const=0
virtual const char * kind () const

Protected Methods

 sc_port_base (int max_size_)
 sc_port_base (const char *name_, int max_size_)
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 add_interface (sc_interface *)=0
virtual const char * if_typename () const=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

Friends

class sc_module
class sc_port_registry
class sc_sensitive
class sc_sensitive_pos
class sc_sensitive_neg

Member Typedef Documentation

typedef sc_port_base sc_port_base::this_type
 

Reimplemented in sc_port_b< IF >.

Definition at line 81 of file sc_port.h.


Constructor & Destructor Documentation

sc_port_base::sc_port_base int    max_size_ [explicit, protected]
 

Definition at line 201 of file sc_port.cpp.

References sc_simcontext::get_port_registry(), sc_port_registry::insert(), and sc_object::simcontext().

sc_port_base::sc_port_base const char *    name_,
int    max_size_
[protected]
 

Definition at line 208 of file sc_port.cpp.

References sc_simcontext::get_port_registry(), sc_port_registry::insert(), and sc_object::simcontext().

sc_port_base::~sc_port_base   [protected, virtual]
 

Definition at line 218 of file sc_port.cpp.

References sc_simcontext::get_port_registry(), sc_port_registry::remove(), and sc_object::simcontext().


Member Function Documentation

virtual void sc_port_base::add_interface sc_interface   [protected, pure virtual]
 

Referenced by bind().

void sc_port_base::before_end_of_elaboration   [protected, virtual]
 

Definition at line 292 of file sc_port.cpp.

void sc_port_base::bind this_type   parent_ [protected]
 

Reimplemented in sc_port_b< IF >.

Definition at line 262 of file sc_port.cpp.

References sc_bind_info::has_parent, sc_bind_info::is_leaf, m_bind_info, sc_bind_info::max_size, sc_pvector< sc_bind_elem * >::push_back(), report_error(), sc_bind_info::size(), and sc_bind_info::vec.

void sc_port_base::bind sc_interface   interface_ [protected]
 

Definition at line 230 of file sc_port.cpp.

References add_interface(), sc_bind_info::has_parent, sc_bind_info::last_add, sc_bind_info::max_size, sc_pvector< sc_bind_elem * >::push_back(), report_error(), sc_bind_info::size(), and sc_bind_info::vec.

Referenced by sc_in< sc_logic >::bind(), sc_in< bool >::bind(), sc_in< sc_lv< W > >::bind(), sc_in< sc_logic >::operator()(), sc_in< bool >::operator()(), sc_in< sc_lv< W > >::operator()(), sc_in< sc_logic >::sc_in(), sc_in< bool >::sc_in(), sc_in< sc_lv< W > >::sc_in(), sc_in< T >::vbind(), sc_in< sc_logic >::vbind(), and sc_in< bool >::vbind().

void sc_port_base::end_of_elaboration   [protected, virtual]
 

Definition at line 298 of file sc_port.cpp.

void sc_port_base::end_of_simulation   [protected, virtual]
 

Definition at line 308 of file sc_port.cpp.

virtual const sc_interface* sc_port_base::get_interface   [pure virtual]
 

Implemented in sc_port_b< IF >.

virtual sc_interface* sc_port_base::get_interface   [pure virtual]
 

Implemented in sc_port_b< IF >.

Referenced by sc_event_finder_t< IF >::find_event(), and sc_sensitive::make_static_sensitivity().

virtual const char* sc_port_base::if_typename   [protected, pure virtual]
 

virtual const char* sc_port_base::kind   const [inline, virtual]
 

Reimplemented from sc_object.

Reimplemented in sc_port< IF, N >.

Definition at line 89 of file sc_port.h.

Referenced by report_error(), and sc_event_finder::report_error().

void sc_port_base::report_error const char *    id,
const char *    add_msg = 0
const [protected]
 

Definition at line 187 of file sc_port.cpp.

References kind(), sc_object::name(), SC_REPORT_ERROR, and sprintf().

Referenced by bind(), sc_port_registry::insert(), sc_port_b< IF >::operator->(), sc_port_b< IF >::operator[](), and sc_port_registry::remove().

void sc_port_base::start_of_simulation   [protected, virtual]
 

Definition at line 303 of file sc_port.cpp.

virtual int sc_port_base::vbind sc_port_base &    [protected, pure virtual]
 

Implemented in sc_port_b< IF >.

virtual int sc_port_base::vbind sc_interface   [protected, pure virtual]
 

Implemented in sc_port_b< IF >.


Friends And Related Function Documentation

friend class sc_module [friend]
 

Definition at line 71 of file sc_port.h.

friend class sc_port_registry [friend]
 

Definition at line 72 of file sc_port.h.

friend class sc_sensitive [friend]
 

Definition at line 73 of file sc_port.h.

friend class sc_sensitive_neg [friend]
 

Definition at line 75 of file sc_port.h.

friend class sc_sensitive_pos [friend]
 

Definition at line 74 of file sc_port.h.


The documentation for this class was generated from the following files:
Generated on Fri Jan 14 08:31:50 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18