Public Types | |
typedef _Tp | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
void | setWeakThis (const WeakPointer &inWeakThis) throw () |
Pointer | getSharedThis () const throw () |
Private Attributes | |
WeakPointer | mWeakThis |
Definition at line 34 of file SelfReferencing.hpp.
SelfReferencing< _Type >::Pointer torc::generic::SelfReferencing< _Type >::getSharedThis | ( | ) | const throw () [inline] |
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
[out] | ptr | Set to a shared pointer to this object |
Definition at line 104 of file SelfReferencing.hpp.
void torc::generic::SelfReferencing< _Tp >::setWeakThis | ( | const WeakPointer & | inWeakThis | ) | throw () [inline] |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
[in] | weakThis | A weak pointer to this object |