AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

The type of the referenced class.

Definition at line 65 of file observer_ptr.h.

Constructor & Destructor Documentation

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

Member Function Documentation

Returns
a native pointer to the referenced object
bool agx::observer_ptr< agx::Constraint1DOF >::isValid ( ) const
inherited
Returns
true if the referenced pointer is == null
virtual void agxPowerLine::Actuator1DOF::ConstraintObserver::objectDeleted ( void *  )
overridevirtual
agx::observer_ptr< agx::Constraint1DOF >::operator agx::Constraint1DOF * ( ) const
inherited

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

bool agx::observer_ptr< agx::Constraint1DOF >::operator! ( ) const
inherited
Returns
true if the referenced pointer is == null
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)
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
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
agx::Constraint1DOF & agx::observer_ptr< agx::Constraint1DOF >::operator* ( ) const
inherited
Returns
a reference to the referenced object
agx::Constraint1DOF * agx::observer_ptr< agx::Constraint1DOF >::operator-> ( ) const
inherited

automatic cast to native pointer and use the dereferencing 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.
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)
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
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

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