|
| | TemplateWeakJointPtr ()=default |
| | Default constructor.
|
| |
| | TemplateWeakJointPtr (JointT *_ptr) |
| | Typical constructor.
|
| |
| template<class OtherJointT , class OtherBodyNodeT > |
| | TemplateWeakJointPtr (const TemplateWeakJointPtr< OtherJointT, OtherBodyNodeT > &_weakPtr) |
| | Constructor that takes in a WeakJointPtr.
|
| |
| template<class OtherJointT , class OtherBodyNodeT > |
| | TemplateWeakJointPtr (const TemplateJointPtr< OtherJointT, OtherBodyNodeT > &_strongPtr) |
| | Constructor that takes in a strong JointPtr.
|
| |
| TemplateWeakJointPtr & | operator= (JointT *_ptr) |
| | Assignment operator for raw Joint pointers.
|
| |
| template<class OtherJointT , class OtherBodyNodeT > |
| TemplateWeakJointPtr & | operator= (const TemplateWeakJointPtr< OtherJointT, OtherBodyNodeT > &_weakPtr) |
| | Assignment operator for WeakJointPtrs.
|
| |
| template<class OtherJointT , class OtherBodyNodeT > |
| TemplateWeakJointPtr & | operator= (const TemplateJointPtr< OtherJointT, OtherBodyNodeT > &_strongPtr) |
| | Assignment operator for strong JointPtrs.
|
| |
| TemplateJointPtr< JointT, BodyNodeT > | lock () const |
| | Locks the Joint reference to ensure that the referenced Joint is currently still available.
|
| |
| void | set (JointT *_ptr) |
| | Set the Joint for this WeakJointPtr.
|
| |
| template<class OtherJointT , class OtherBodyNodeT > |
| void | set (const TemplateWeakJointPtr< OtherJointT, OtherBodyNodeT > &_weakPtr) |
| | Set the Joint for this WeakJointPtr based on another WeakJointPtr.
|
| |
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.