|
| TemplateWeakNodePtr () |
| Default constructor. More...
|
|
| TemplateWeakNodePtr (NodeT *_ptr) |
| Typical constructor. More...
|
|
template<class OtherNodeT , class OtherBodyNodeT > |
| TemplateWeakNodePtr (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| Constructor that takes in a WeakNodePtr. More...
|
|
template<class OtherNodeT , class OtherBodyNodeT > |
| TemplateWeakNodePtr (const TemplateNodePtr< OtherNodeT, OtherBodyNodeT > &_strongPtr) |
| Constructor that takes in a strong NodePtr. More...
|
|
TemplateWeakNodePtr & | operator= (NodeT *_ptr) |
| Assignment operator for raw Node pointers. More...
|
|
template<class OtherNodeT , class OtherBodyNodeT > |
TemplateWeakNodePtr & | operator= (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| Assignment operator for WeakNodePtrs. More...
|
|
template<class OtherNodeT , class OtherBodyNodeT > |
TemplateWeakNodePtr & | operator= (const TemplateNodePtr< OtherNodeT, OtherBodyNodeT > &_strongPtr) |
| Assignment operator for strong NodePtrs. More...
|
|
TemplateNodePtr< NodeT, BodyNodeT > | lock () const |
| Locks the Node reference to ensure that the referenced Node is currently still available. More...
|
|
void | set (NodeT *_ptr) |
| Set the Node for this WeakNodePtr. More...
|
|
template<class OtherNodeT , class OtherBodyNodeT > |
void | set (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| Set the Node for this WeakNodePtr based on another WeakNodePtr. More...
|
|
template<class NodeT, class BodyNodeT>
class dart::dynamics::TemplateWeakNodePtr< NodeT, BodyNodeT >
TemplateWeakNodePtr is a templated class that enables users to create a weak non-reference-holding WeakNodePtr.
Holding onto a WeakNodePtr will NOT prevent anything from getting deleted, but you can use lock() to check whether the Node still exists. If it does exist, it will return a valid NodePtr. Otherwise it will return a nullptr NodePtr.