AGX Dynamics  2.37.3.2
agxPowerLine::Actuator1DOF::ConstraintObserver Class Reference

Observer that not only sets the Constraint 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::Constraint *actuatedConstraint, Actuator1DOF *owningActuator)
 
virtual void objectDeleted (void *) override
 
- Public Member Functions inherited from agx::observer_ptr< agx::Constraint >
 observer_ptr ()
 Constructor. More...
 
 observer_ptr (agx::Constraint *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::Constraint * get () const
 
bool isValid () const
 
 operator agx::Constraint * () 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 const *p) const
 
bool operator!= (U *p) const
 
agx::Constraint & operator* () const
 
agx::Constraint * operator-> () const
 automatic cast to native pointer and use the dereferencing operator More...
 
bool operator< (const observer_ptr &rp) const
 
observer_ptr & operator= (const observer_ptr &rp)
 Assignment operator. More...
 
observer_ptr & operator= (agx::Constraint *ptr)
 
bool operator== (observer_ptr< U > const &rp) const
 
bool operator== (U const *p) const
 
bool operator== (U *p) const
 

Additional Inherited Members

- Public Types inherited from agx::observer_ptr< agx::Constraint >
typedef agx::Constraint element_type
 The type of the referenced class. More...
 

Detailed Description

Observer that not only sets the Constraint pointer to nullptr on object deletion, but also informs the owning Actuator so the body units can be updated.

Definition at line 346 of file Actuator1DOF.h.

Constructor & Destructor Documentation

◆ ConstraintObserver()

agxPowerLine::Actuator1DOF::ConstraintObserver::ConstraintObserver ( agx::Constraint *  actuatedConstraint,
Actuator1DOF *  owningActuator 
)

Member Function Documentation

◆ objectDeleted()

virtual void agxPowerLine::Actuator1DOF::ConstraintObserver::objectDeleted ( void *  )
overridevirtual

The documentation for this class was generated from the following file: