#include <Progenitor.hpp>
Public Member Functions | |
const WeakPtrType & | getSelfWeakPtr (void) const |
Returns a weak pointer to this object. | |
Protected Types | |
typedef boost::weak_ptr< T > | WeakPtrType |
Weak pointer of our own type. | |
typedef boost::shared_ptr< T > | SharedPtrType |
Shared pointer of our own type. | |
Protected Member Functions | |
void | setSelfWeakPtr (WeakPtrType inSelfPtr) |
Sets the weak pointer to this object. | |
Protected Attributes | |
WeakPtrType | mSelfWeakPtr |
Weak pointer this object. | |
Friends | |
class | Factory |
The Factory class has direct access to our internals. | |
class | torc::physical::physical::ProgenitorUnitTest |
Our unit test has direct access to our internals. | |
class | torc::physical::physical::ProgenyUnitTest |
The Progeny<T> unit test has direct access to our internals. |
Definition at line 36 of file Progenitor.hpp.
typedef boost::weak_ptr<T> torc::physical::Progenitor< T >::WeakPtrType [protected] |
typedef boost::shared_ptr<T> torc::physical::Progenitor< T >::SharedPtrType [protected] |
void torc::physical::Progenitor< T >::setSelfWeakPtr | ( | WeakPtrType | inSelfPtr | ) | [inline, protected] |
const WeakPtrType& torc::physical::Progenitor< T >::getSelfWeakPtr | ( | void | ) | const [inline] |
friend class Factory [friend] |
The Factory class has direct access to our internals.
The Factory class needs access so that it can set this object's self weak pointer after constructing it. This object can in turn share its weak pointer with its children, allowing them to link back.
Reimplemented in torc::physical::Design, torc::physical::Instance, torc::physical::InstancePin, torc::physical::Module, and torc::physical::Net.
Definition at line 42 of file Progenitor.hpp.
friend class torc::physical::physical::ProgenitorUnitTest [friend] |
friend class torc::physical::physical::ProgenyUnitTest [friend] |
The Progeny<T> unit test has direct access to our internals.
Definition at line 46 of file Progenitor.hpp.
WeakPtrType torc::physical::Progenitor< T >::mSelfWeakPtr [protected] |
Weak pointer this object.
This weak pointer is kept here to be passed along to our children, allowing them to point back to us without the strong dependency of a shared pointer.
Definition at line 57 of file Progenitor.hpp.