#include <Progeny.hpp>

Public Member Functions | |
| Progeny (void) | |
| Null constructor. | |
| Progeny (const WeakPtrType &inParentPtr) | |
| Constructor that specifies a parent. | |
| const WeakPtrType & | getParentWeakPtr (void) const |
| Returns a weak pointer to the parent. | |
| void | setParentWeakPtr (WeakPtrType inParentPtr) |
| Sets the weak pointer to the parent. | |
| void | resetParentWeakPtr (void) |
| Method to reset and orphan this object. | |
| const SharedPtrType & | getParentSharedPtr (void) const |
| Returns a shared pointer to the parent (WARNING: Does not work right). | |
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 Attributes | |
| WeakPtrType | mParentWeakPtr |
| Weak pointer to the parent. | |
Definition at line 29 of file Progeny.hpp.
typedef boost::weak_ptr<T> torc::physical::Progeny< T >::WeakPtrType [protected] |
typedef boost::shared_ptr<T> torc::physical::Progeny< T >::SharedPtrType [protected] |
| torc::physical::Progeny< T >::Progeny | ( | void | ) | [inline] |
| torc::physical::Progeny< T >::Progeny | ( | const WeakPtrType & | inParentPtr | ) | [inline] |
| const WeakPtrType& torc::physical::Progeny< T >::getParentWeakPtr | ( | void | ) | const [inline] |
| void torc::physical::Progeny< T >::setParentWeakPtr | ( | WeakPtrType | inParentPtr | ) | [inline] |
| void torc::physical::Progeny< T >::resetParentWeakPtr | ( | void | ) | [inline] |
| const SharedPtrType& torc::physical::Progeny< T >::getParentSharedPtr | ( | void | ) | const [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.
WeakPtrType torc::physical::Progeny< T >::mParentWeakPtr [protected] |
1.5.6