32a33
> #include "sc_module.hh" // for sc_gen_unique_name
50c51,54
< void warn_unimpl(const char *func);
---
> sc_port_base(const char *name, int n, sc_port_policy p) : sc_object(name)
> {}
>
> void warn_unimpl(const char *func) const;
136,139c140,146
< explicit sc_port_b(int, sc_port_policy)
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
---
> explicit sc_port_b(int n, sc_port_policy p) :
> sc_port_base(sc_gen_unique_name("sc_port"), n, p)
> {}
> sc_port_b(const char *name, int n, sc_port_policy p) :
> sc_port_base(name, n, p)
> {}
> virtual ~sc_port_b() {}
141,150d147
< sc_port_b(const char *, int, sc_port_policy)
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
<
< virtual ~sc_port_b()
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
<
162,165c159,161
< sc_port()
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
---
> sc_port() : sc_port_b<IF>(sc_gen_unique_name("sc_port"), N, P) {}
> explicit sc_port(const char *name) : sc_port_b<IF>(name, N, P) {}
> virtual ~sc_port() {}
167,170c163
< explicit sc_port(const char *)
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
---
> virtual const char *kind() const { return "sc_port"; }
172,183d164
< virtual ~sc_port()
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< }
<
< virtual const char *
< kind() const
< {
< warn_unimpl(__PRETTY_FUNCTION__);
< return "";
< }
<