Allow ports to be created without a name.

--HG--
extra : convert_revision : 26dad6853feaf4f68907aab902c54259281cac1c
This commit is contained in:
Kevin Lim 2006-06-25 00:24:50 -04:00
parent 4787d357d5
commit f1a24337a8

View file

@ -74,7 +74,7 @@ class Port
private:
/** Descriptive name (for DPRINTF output) */
const std::string portName;
mutable std::string portName;
/** A pointer to the peer port. Ports always come in pairs, that way they
can use a standardized interface to communicate between different
@ -83,6 +83,10 @@ class Port
public:
Port()
: peer(NULL)
{ }
/**
* Constructor.
*
@ -105,6 +109,9 @@ class Port
RangeChange
};
void setName(const std::string &name)
{ portName = name; }
/** Function to set the pointer for the peer port.
@todo should be called by the configuration stuff (python).
*/