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