torc-master
|
Instantiation of a module instance. More...
#include <InstanceReference.hpp>
Public Member Functions | |
const ModuleWeakPtr & | getModulePtr (void) const |
Returns the weak module pointer. More... | |
const InstanceWeakPtr & | getInstancePtr (void) const |
Returns the weak instance pointer. More... | |
const string & | getInstantiationName (void) const |
Returns the instantiation name. More... | |
bool | operator== (const InstanceReference &rhs) const |
Equality operator. More... | |
Protected Types | |
typedef std::string | string |
Imported type name. More... | |
typedef boost::shared_ptr < class Instance > | InstanceSharedPtr |
Local forward declaration of InstanceSharedPtr to avoid dependency loops. More... | |
typedef boost::weak_ptr< class Instance > | InstanceWeakPtr |
Local forward declaration of InstanceWeakPtr to avoid dependency loops. More... | |
typedef boost::shared_ptr < class Module > | ModuleSharedPtr |
Local forward declaration of ModuleSharedPtr to avoid dependency loops. More... | |
typedef boost::weak_ptr< class Module > | ModuleWeakPtr |
Local forward declaration of ModuleWeakPtr to avoid dependency loops. More... | |
Protected Member Functions | |
InstanceReference (const string &inInstantiationName, ModuleSharedPtr inModulePtr, InstanceSharedPtr inInstancePtr) | |
Protected constructor. More... | |
Protected Attributes | |
string | mInstantiationName |
The module instantiation name. More... | |
ModuleWeakPtr | mModulePtr |
The module weak pointer. More... | |
InstanceWeakPtr | mInstancePtr |
The instance weak pointer. More... | |
Friends | |
class | Factory |
The Factory class has direct access to our internals. More... | |
Instantiation of a module instance.
This class references a module instance. It is used in cases where a module has been instantiated in a design, and instances appearing in that design point back to the module instances they were instantiated from.
Definition at line 32 of file InstanceReference.hpp.
|
protected |
Local forward declaration of InstanceSharedPtr to avoid dependency loops.
Definition at line 41 of file InstanceReference.hpp.
|
protected |
Local forward declaration of InstanceWeakPtr to avoid dependency loops.
Definition at line 43 of file InstanceReference.hpp.
|
protected |
Local forward declaration of ModuleSharedPtr to avoid dependency loops.
Definition at line 45 of file InstanceReference.hpp.
|
protected |
Local forward declaration of ModuleWeakPtr to avoid dependency loops.
Definition at line 47 of file InstanceReference.hpp.
|
protected |
Imported type name.
Definition at line 39 of file InstanceReference.hpp.
|
inlineprotected |
Protected constructor.
inInstantiationName | The name under which the reference module was instantiated. |
inModulePtr | The module containing the referenced instance. |
inInstancePtr | The instance being referenced. |
Definition at line 62 of file InstanceReference.hpp.
|
inline |
Returns the weak instance pointer.
Definition at line 70 of file InstanceReference.hpp.
|
inline |
Returns the instantiation name.
Definition at line 72 of file InstanceReference.hpp.
|
inline |
Returns the weak module pointer.
Definition at line 68 of file InstanceReference.hpp.
|
inline |
Equality operator.
Definition at line 76 of file InstanceReference.hpp.
|
friend |
The Factory class has direct access to our internals.
Definition at line 35 of file InstanceReference.hpp.
|
protected |
The instance weak pointer.
The instance pointer points to the module instance that this object references.
Definition at line 56 of file InstanceReference.hpp.
|
protected |
The module instantiation name.
The instantiation name is the name under which the module was instantiated.
Definition at line 51 of file InstanceReference.hpp.
|
protected |
The module weak pointer.
Definition at line 53 of file InstanceReference.hpp.