sc_port.hh (13290:1e720f971554) | sc_port.hh (13293:60c727f33e16) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 98 unchanged lines hidden (view full) --- 107 friend class ::sc_gem5::Port; 108 friend class ::sc_gem5::Kernel; 109 110 virtual sc_interface *_gem5Interface(int n) const = 0; 111 virtual void _gem5AddInterface(sc_interface *i) = 0; 112 113 ::sc_gem5::Port *_gem5Port; 114 virtual const char *_ifTypeName() const = 0; | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 98 unchanged lines hidden (view full) --- 107 friend class ::sc_gem5::Port; 108 friend class ::sc_gem5::Kernel; 109 110 virtual sc_interface *_gem5Interface(int n) const = 0; 111 virtual void _gem5AddInterface(sc_interface *i) = 0; 112 113 ::sc_gem5::Port *_gem5Port; 114 virtual const char *_ifTypeName() const = 0; |
115 virtual sc_port_policy _portPolicy() const = 0; |
|
115}; 116 117template <class IF> 118class sc_port_b : public sc_port_base 119{ 120 public: 121 void operator () (IF &i) { bind(i); } 122 void operator () (sc_port_b<IF> &p) { bind(p); } --- 171 unchanged lines hidden (view full) --- 294 } 295 296 virtual const char *kind() const { return "sc_port"; } 297 298 private: 299 // Disabled 300 sc_port(const sc_port<IF, N, P> &) {} 301 sc_port<IF, N, P> &operator = (const sc_port<IF, N, P> &) { return *this; } | 116}; 117 118template <class IF> 119class sc_port_b : public sc_port_base 120{ 121 public: 122 void operator () (IF &i) { bind(i); } 123 void operator () (sc_port_b<IF> &p) { bind(p); } --- 171 unchanged lines hidden (view full) --- 295 } 296 297 virtual const char *kind() const { return "sc_port"; } 298 299 private: 300 // Disabled 301 sc_port(const sc_port<IF, N, P> &) {} 302 sc_port<IF, N, P> &operator = (const sc_port<IF, N, P> &) { return *this; } |
303 304 virtual sc_port_policy _portPolicy() const { return P; } |
|
302}; 303 304} // namespace sc_core 305 306#endif //__SYSTEMC_EXT_CORE_SC_PORT_HH__ | 305}; 306 307} // namespace sc_core 308 309#endif //__SYSTEMC_EXT_CORE_SC_PORT_HH__ |