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