|
AGX Dynamics
2.35.0.1
|
Observer that not only sets the Constraint1DOF pointer to nullptr on object deletion, but also informs the owning Actuator so the body units can be updated. More...
#include <Actuator1DOF.h>
Inheritance diagram for agxPowerLine::Actuator1DOF::ConstraintObserver:Public Member Functions | |
| ConstraintObserver (agx::Constraint1DOF *actuatedConstraint, Actuator1DOF *owningActuator) | |
| virtual void | objectDeleted (void *) override |
Public Member Functions inherited from agx::observer_ptr< agx::Constraint1DOF > | |
| observer_ptr () | |
| Constructor. More... | |
| observer_ptr (agx::Constraint1DOF *t) | |
Constructor, create an observer_ptr and listen to the object t for when it is deleted. More... | |
| observer_ptr (const observer_ptr &rp) | |
| Copy constructor. More... | |
| virtual | ~observer_ptr () |
| Destructor. More... | |
| agx::Constraint1DOF * | get () const |
| bool | isValid () const |
| operator agx::Constraint1DOF * () const | |
| Cast operator that will cast the observer_ptr to its native type. More... | |
| bool | operator! () const |
| bool | operator!= (observer_ptr< U > const &rp) const |
| bool | operator!= (U *p) const |
| bool | operator!= (U const *p) const |
| agx::Constraint1DOF & | operator* () const |
| agx::Constraint1DOF * | operator-> () const |
| automatic cast to native pointer and use the dereferencing operator More... | |
| bool | operator< (const observer_ptr &rp) const |
| observer_ptr & | operator= (agx::Constraint1DOF *ptr) |
| observer_ptr & | operator= (const observer_ptr &rp) |
| Assignment operator. More... | |
| bool | operator== (observer_ptr< U > const &rp) const |
| bool | operator== (U *p) const |
| bool | operator== (U const *p) const |
Additional Inherited Members | |
Public Types inherited from agx::observer_ptr< agx::Constraint1DOF > | |
| typedef agx::Constraint1DOF | element_type |
| The type of the referenced class. More... | |
Observer that not only sets the Constraint1DOF pointer to nullptr on object deletion, but also informs the owning Actuator so the body units can be updated.
Definition at line 103 of file Actuator1DOF.h.
| agxPowerLine::Actuator1DOF::ConstraintObserver::ConstraintObserver | ( | agx::Constraint1DOF * | actuatedConstraint, |
| Actuator1DOF * | owningActuator | ||
| ) |
|
overridevirtual |
Reimplemented from agx::observer_ptr< agx::Constraint1DOF >.