Go to the documentation of this file.
46 #ifndef __SIM_PORT_HH__
47 #define __SIM_PORT_HH__
150 static inline std::ostream &
157 #endif //__SIM_PORT_HH__
static std::ostream & operator<<(std::ostream &os, const Port &port)
virtual void unbind()
Dettach from a peer port.
const std::string portName
Descriptive name (for DPRINTF output)
bool _connected
Whether this port is currently connected to a peer port.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Port(const std::string &_name, PortID _id)
Abstract base class for ports.
void reportUnbound() const
void takeOverFrom(Port *old)
A utility function to make it easier to swap out ports.
Ports are used to interface objects to each other.
const PortID id
A numeric identifier to distinguish ports in a vector, and set to InvalidPortID in case this port is ...
const std::string name() const
Return port name (for DPRINTF).
Port & getPeer()
Return a reference to this port's peer.
bool isConnected() const
Is this port currently connected to a peer?
Port * _peer
A pointer to this port's peer.
PortID getId() const
Get the port id.
virtual void bind(Port &peer)
Attach to a peer port.
virtual ~Port()
Virtual destructor due to inheritance.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17