AGXDynamics  2.31.1.0
agxPowerLine::Actuator1DOF::ConstraintObserver Class Reference

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 Types

typedef agx::Constraint1DOF element_type
 The type of the referenced class. More...
 

Public Member Functions

 ConstraintObserver (agx::Constraint1DOF *actuatedConstraint, Actuator1DOF *owningActuator)
 
agx::Constraint1DOF * get () const
 
bool isValid () const
 
virtual void objectDeleted (void *) override
 
 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 const *p) const
 
bool operator!= (U *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
 
bool operator== (observer_ptr< U > const &rp) const
 
bool operator== (U const *p) const
 
bool operator== (U *p) const
 

Detailed Description

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 97 of file Actuator1DOF.h.

Member Typedef Documentation

◆ element_type

The type of the referenced class.

Definition at line 65 of file observer_ptr.h.

Constructor & Destructor Documentation

◆ ConstraintObserver()

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

Member Function Documentation

◆ get()

Returns
a native pointer to the referenced object

Definition at line 276 of file observer_ptr.h.

◆ isValid()

bool agx::observer_ptr< agx::Constraint1DOF >::isValid ( ) const
inherited
Returns
true if the referenced pointer is == null

Definition at line 288 of file observer_ptr.h.

◆ objectDeleted()

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

◆ operator agx::Constraint1DOF *()

agx::observer_ptr< agx::Constraint1DOF >::operator agx::Constraint1DOF * ( ) const
inherited

Cast operator that will cast the observer_ptr to its native type.

Definition at line 210 of file observer_ptr.h.

◆ operator!()

bool agx::observer_ptr< agx::Constraint1DOF >::operator! ( ) const
inherited
Returns
true if the referenced pointer is == null

Definition at line 282 of file observer_ptr.h.

◆ operator!=() [1/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator!= ( observer_ptr< U > const &  rp) const
inherited
Returns
true if the two observer pointers are NOT referencing the same object (address)

Definition at line 224 of file observer_ptr.h.

◆ operator!=() [2/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator!= ( U const *  p) const
inherited
Returns
true if the pointer is NOT pointing at the same object as this observer pointer

Definition at line 238 of file observer_ptr.h.

◆ operator!=() [3/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator!= ( U *  p) const
inherited
Returns
true if the pointer is NOT pointing at the same object as this observer pointer

Definition at line 252 of file observer_ptr.h.

◆ operator*()

agx::Constraint1DOF & agx::observer_ptr< agx::Constraint1DOF >::operator* ( ) const
inherited
Returns
a reference to the referenced object

Definition at line 264 of file observer_ptr.h.

◆ operator->()

agx::Constraint1DOF * agx::observer_ptr< agx::Constraint1DOF >::operator-> ( ) const
inherited

automatic cast to native pointer and use the dereferencing operator

Definition at line 270 of file observer_ptr.h.

◆ operator<()

bool agx::observer_ptr< agx::Constraint1DOF >::operator< ( const observer_ptr< agx::Constraint1DOF > &  rp) const
inherited
Returns
true if the pointer this is pointing to an address which is less than the one rp is referencing.

Definition at line 258 of file observer_ptr.h.

◆ operator==() [1/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator== ( observer_ptr< U > const &  rp) const
inherited
Returns
true if the two observer pointers are referencing the same object (address)

Definition at line 217 of file observer_ptr.h.

◆ operator==() [2/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator== ( U const *  p) const
inherited
Returns
true if the pointer is pointing at the same object as this observer pointer

Definition at line 231 of file observer_ptr.h.

◆ operator==() [3/3]

bool agx::observer_ptr< agx::Constraint1DOF >::operator== ( U *  p) const
inherited
Returns
true if the pointer is pointing at the same object as this observer pointer

Definition at line 245 of file observer_ptr.h.


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