#include <InstanceReference.hpp>
Public Member Functions | |
const ModuleWeakPtr & | getModulePtr (void) const |
Returns the weak module pointer. | |
const InstanceWeakPtr & | getInstancePtr (void) const |
Returns the weak instance pointer. | |
const string & | getInstantiationName (void) const |
Returns the instantiation name. | |
bool | operator== (const InstanceReference &rhs) const |
Equality operator. | |
Protected Types | |
typedef std::string | string |
Imported type name. | |
typedef boost::shared_ptr < class Instance > | InstanceSharedPtr |
Local forward declaration of InstanceSharedPtr to avoid dependency loops. | |
typedef boost::weak_ptr< class Instance > | InstanceWeakPtr |
Local forward declaration of InstanceWeakPtr to avoid dependency loops. | |
typedef boost::shared_ptr < class Module > | ModuleSharedPtr |
Local forward declaration of ModuleSharedPtr to avoid dependency loops. | |
typedef boost::weak_ptr< class Module > | ModuleWeakPtr |
Local forward declaration of ModuleWeakPtr to avoid dependency loops. | |
Protected Member Functions | |
InstanceReference (const string &inInstantiationName, ModuleSharedPtr inModulePtr, InstanceSharedPtr inInstancePtr) | |
Protected constructor. | |
Protected Attributes | |
string | mInstantiationName |
The module instantiation name. | |
ModuleWeakPtr | mModulePtr |
The module weak pointer. | |
InstanceWeakPtr | mInstancePtr |
The instance weak pointer. | |
Friends | |
class | Factory |
The Factory class has direct access to our internals. |
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.
typedef std::string torc::physical::InstanceReference::string [protected] |
typedef boost::shared_ptr<class Instance> torc::physical::InstanceReference::InstanceSharedPtr [protected] |
Local forward declaration of InstanceSharedPtr to avoid dependency loops.
Definition at line 41 of file InstanceReference.hpp.
typedef boost::weak_ptr<class Instance> torc::physical::InstanceReference::InstanceWeakPtr [protected] |
Local forward declaration of InstanceWeakPtr to avoid dependency loops.
Definition at line 43 of file InstanceReference.hpp.
typedef boost::shared_ptr<class Module> torc::physical::InstanceReference::ModuleSharedPtr [protected] |
Local forward declaration of ModuleSharedPtr to avoid dependency loops.
Definition at line 45 of file InstanceReference.hpp.
typedef boost::weak_ptr<class Module> torc::physical::InstanceReference::ModuleWeakPtr [protected] |
Local forward declaration of ModuleWeakPtr to avoid dependency loops.
Definition at line 47 of file InstanceReference.hpp.
torc::physical::InstanceReference::InstanceReference | ( | const string & | inInstantiationName, | |
ModuleSharedPtr | inModulePtr, | |||
InstanceSharedPtr | inInstancePtr | |||
) | [inline, protected] |
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.
const ModuleWeakPtr& torc::physical::InstanceReference::getModulePtr | ( | void | ) | const [inline] |
const InstanceWeakPtr& torc::physical::InstanceReference::getInstancePtr | ( | void | ) | const [inline] |
const string& torc::physical::InstanceReference::getInstantiationName | ( | void | ) | const [inline] |
bool torc::physical::InstanceReference::operator== | ( | const InstanceReference & | rhs | ) | const [inline] |
friend class Factory [friend] |
The Factory class has direct access to our internals.
Definition at line 35 of file InstanceReference.hpp.
The module instantiation name.
The instantiation name is the name under which the module was instantiated.
Definition at line 51 of file InstanceReference.hpp.
The instance weak pointer.
The instance pointer points to the module instance that this object references.
Definition at line 56 of file InstanceReference.hpp.