|
torc-master
|
#include <SelfReferencing.hpp>
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) |
| Pointer | getSharedThis () const |
| ~SelfReferencing () throw () | |
Protected Member Functions | |
| SelfReferencing () | |
Private Attributes | |
| WeakPointer | mWeakThis |
Definition at line 30 of file SelfReferencing.hpp.
| typedef boost::shared_ptr<Type> torc::generic::SelfReferencing< _Tp >::Pointer |
Definition at line 36 of file SelfReferencing.hpp.
| typedef _Tp torc::generic::SelfReferencing< _Tp >::Type |
Definition at line 35 of file SelfReferencing.hpp.
| typedef boost::weak_ptr<Type> torc::generic::SelfReferencing< _Tp >::WeakPointer |
Definition at line 37 of file SelfReferencing.hpp.
|
protected |
Definition at line 70 of file SelfReferencing.hpp.
| torc::generic::SelfReferencing< _Type >::~SelfReferencing | ( | ) | ||
| throw | ( | |||
| ) | ||||
Definition at line 72 of file SelfReferencing.hpp.
|
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 94 of file SelfReferencing.hpp.
|
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 |
Definition at line 81 of file SelfReferencing.hpp.
|
private |
Definition at line 67 of file SelfReferencing.hpp.