|
| | TemplateWeakNodePtr () |
| | Default constructor.
|
| |
| | TemplateWeakNodePtr (NodeT *_ptr) |
| | Typical constructor.
|
| |
| template<class OtherNodeT , class OtherBodyNodeT > |
| | TemplateWeakNodePtr (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| | Constructor that takes in a WeakNodePtr.
|
| |
| template<class OtherNodeT , class OtherBodyNodeT > |
| | TemplateWeakNodePtr (const TemplateNodePtr< OtherNodeT, OtherBodyNodeT > &_strongPtr) |
| | Constructor that takes in a strong NodePtr.
|
| |
| TemplateWeakNodePtr & | operator= (NodeT *_ptr) |
| | Assignment operator for raw Node pointers.
|
| |
| template<class OtherNodeT , class OtherBodyNodeT > |
| TemplateWeakNodePtr & | operator= (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| | Assignment operator for WeakNodePtrs.
|
| |
| template<class OtherNodeT , class OtherBodyNodeT > |
| TemplateWeakNodePtr & | operator= (const TemplateNodePtr< OtherNodeT, OtherBodyNodeT > &_strongPtr) |
| | Assignment operator for strong NodePtrs.
|
| |
| TemplateNodePtr< NodeT, BodyNodeT > | lock () const |
| | Locks the Node reference to ensure that the referenced Node is currently still available.
|
| |
| void | set (NodeT *_ptr) |
| | Set the Node for this WeakNodePtr.
|
| |
| template<class OtherNodeT , class OtherBodyNodeT > |
| void | set (const TemplateWeakNodePtr< OtherNodeT, OtherBodyNodeT > &_weakPtr) |
| | Set the Node for this WeakNodePtr based on another WeakNodePtr.
|
| |
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.