60a61,62
> class MemObject;
>
83a86,88
> /** A pointer to the MemObject that owns this port. This may not be set. */
> MemObject *owner;
>
87c92
< : peer(NULL)
---
> : peer(NULL), owner(NULL)
94a100,101
> * @param _owner Pointer to the MemObject that owns this port.
> * Will not necessarily be set.
96,97c103,104
< Port(const std::string &_name)
< : portName(_name), peer(NULL)
---
> Port(const std::string &_name, MemObject *_owner = NULL)
> : portName(_name), peer(NULL), owner(_owner)
115,117c122
< /** Function to set the pointer for the peer port.
< @todo should be called by the configuration stuff (python).
< */
---
> /** Function to set the pointer for the peer port. */
120,122c125
< /** Function to set the pointer for the peer port.
< @todo should be called by the configuration stuff (python).
< */
---
> /** Function to get the pointer to the peer port. */
124a128,133
> /** Function to set the owner of this port. */
> void setOwner(MemObject *_owner) { owner = _owner; }
>
> /** Function to return the owner of this port. */
> MemObject *getOwner() { return owner; }
>
250,251c259,260
< FunctionalPort(const std::string &_name)
< : Port(_name)
---
> FunctionalPort(const std::string &_name, MemObject *_owner = NULL)
> : Port(_name, _owner)