torc-master
|
Module input or output port. More...
#include <Port.hpp>
Public Member Functions | |
const InstanceWeakPtr & | getInstancePtr (void) const |
Returns a weak instance pointer. More... | |
const PinName & | getPinName (void) const |
Returns the pin name. More... | |
bool | operator== (const Port &rhs) const |
Equality operator. More... | |
const string & | getName (void) const |
Returns the object name. More... | |
bool | operator== (const Named &rhs) const |
Equality operator. More... | |
const WeakPtrType & | getParentWeakPtr (void) const |
Returns a weak pointer to the parent. More... | |
void | setParentWeakPtr (WeakPtrType inParentPtr) |
Sets the weak pointer to the parent. More... | |
void | resetParentWeakPtr (void) |
Method to reset and orphan this object. More... | |
const SharedPtrType & | getParentSharedPtr (void) const |
Returns a shared pointer to the parent (WARNING: Does not work right). More... | |
Protected Types | |
typedef std::string | string |
Imported type name. More... | |
typedef boost::weak_ptr< class Module > | WeakPtrType |
Weak pointer of our own type. More... | |
typedef boost::shared_ptr < class Module > | SharedPtrType |
Shared pointer of our own type. More... | |
Protected Member Functions | |
Port (const string &inName, InstanceSharedPtr inInstancePtr, const string &inPinName) | |
Protected constructor. More... | |
Protected Attributes | |
InstanceWeakPtr | mInstancePtr |
The port instance pointer. More... | |
PinName | mPinName |
The port pin name. More... | |
string | mName |
The name of the object. More... | |
WeakPtrType | mParentWeakPtr |
Weak pointer to the parent. More... | |
Friends | |
class | Factory |
The Factory class has direct access to our internals. More... | |
Module input or output port.
This class declares a named port for the enclosing module.
Definition at line 37 of file physical/Port.hpp.
|
protectedinherited |
Shared pointer of our own type.
Definition at line 35 of file Progeny.hpp.
|
protected |
Imported type name.
Definition at line 44 of file physical/Port.hpp.
|
protectedinherited |
Weak pointer of our own type.
Definition at line 33 of file Progeny.hpp.
|
inlineprotected |
Protected constructor.
inName | The port name. |
inInstancePtr | The port instance pointer. |
inPinName | The port pin name. |
Definition at line 55 of file physical/Port.hpp.
|
inline |
Returns a weak instance pointer.
Definition at line 60 of file physical/Port.hpp.
|
inlineinherited |
|
inlineinherited |
Returns a shared pointer to the parent (WARNING: Does not work right).
Always seems to generate a "Returning reference to temporary" warning, and I cannot figure out why.
It is the caller's responsibility to reset the shared pointer when done.
Definition at line 59 of file Progeny.hpp.
|
inlineinherited |
Returns a weak pointer to the parent.
Definition at line 47 of file Progeny.hpp.
|
inline |
Returns the pin name.
Definition at line 62 of file physical/Port.hpp.
|
inlineinherited |
|
inline |
Equality operator.
This function deems ports equal if their names are identical.
Definition at line 67 of file physical/Port.hpp.
|
inlineinherited |
Method to reset and orphan this object.
Definition at line 51 of file Progeny.hpp.
|
inlineinherited |
Sets the weak pointer to the parent.
Definition at line 49 of file Progeny.hpp.
|
friend |
The Factory class has direct access to our internals.
Definition at line 40 of file physical/Port.hpp.
|
protected |
The port instance pointer.
Definition at line 47 of file physical/Port.hpp.
|
protectedinherited |
|
protectedinherited |
Weak pointer to the parent.
Definition at line 38 of file Progeny.hpp.
|
protected |
The port pin name.
Definition at line 49 of file physical/Port.hpp.