|
torc-master
|
Concept for any object that may have a parent. More...
#include <Progeny.hpp>
Public Member Functions | |
| Progeny (void) | |
| Null constructor. More... | |
| Progeny (const WeakPtrType &inParentPtr) | |
| Constructor that specifies a parent. More... | |
| const WeakPtrType & | getParentWeakPtr (void) const |
| Returns a weak pointer to the parent. More... | |
| void | setParentWeakPtr (WeakPtrType inParentPtr) |
| Sets the weak pointer to the parent. More... | |
| void | resetParentWeakPtr (void) |
| Method to reset and orphan this object. More... | |
| const SharedPtrType & | getParentSharedPtr (void) const |
| Returns a shared pointer to the parent (WARNING: Does not work right). More... | |
Protected Types | |
| typedef boost::weak_ptr< T > | WeakPtrType |
| Weak pointer of our own type. More... | |
| typedef boost::shared_ptr< T > | SharedPtrType |
| Shared pointer of our own type. More... | |
Protected Attributes | |
| WeakPtrType | mParentWeakPtr |
| Weak pointer to the parent. More... | |
Concept for any object that may have a parent.
Definition at line 29 of file Progeny.hpp.
|
protected |
Shared pointer of our own type.
Definition at line 35 of file Progeny.hpp.
|
protected |
Weak pointer of our own type.
Definition at line 33 of file Progeny.hpp.
|
inline |
|
inline |
Constructor that specifies a parent.
Definition at line 44 of file Progeny.hpp.
|
inline |
Returns a shared pointer to the parent (WARNING: Does not work right).
Always seems to generate a "Returning reference to temporary" warning, and I cannot figure out why.
It is the caller's responsibility to reset the shared pointer when done.
Definition at line 59 of file Progeny.hpp.
|
inline |
Returns a weak pointer to the parent.
Definition at line 47 of file Progeny.hpp.
|
inline |
Method to reset and orphan this object.
Definition at line 51 of file Progeny.hpp.
|
inline |
Sets the weak pointer to the parent.
Definition at line 49 of file Progeny.hpp.
|
protected |
Weak pointer to the parent.
Definition at line 38 of file Progeny.hpp.