|
| virtual bool | add (agxCollide::Geometry *geometry)=0 |
| |
| virtual bool | add (agx::RigidBody *body, bool addGeometries=true)=0 |
| |
| virtual bool | add (agx::Constraint *c)=0 |
| |
| virtual bool | add (agx::StrongInteraction *si)=0 |
| |
| virtual bool | add (agxSDK::Assembly *assembly)=0 |
| |
| virtual bool | add (agxSDK::EventListener *listener)=0 |
| |
| virtual void | addGeometryContacts (const agxCollide::LocalGeometryContactVector &contacts)=0 |
| |
| virtual void | addGroup (agxCollide::Geometry *geometry, agx::UInt32 id)=0 |
| |
| virtual void | addGroup (agxCollide::Geometry *geometry, const agx::Name &name)=0 |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting. More...
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match. More...
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| virtual void | commit (agxSDK::Simulation *simulation)=0 |
| |
| virtual bool | empty () const =0 |
| |
| virtual const agx::GravityField * | getGravityField () const =0 |
| |
virtual const
agxSDK::MaterialManager * | getMaterialManager () const =0 |
| |
| int | getReferenceCount () const |
| |
| virtual bool | getRunningParallel () const =0 |
| |
| virtual const agxSDK::Simulation * | getSimulation () const =0 |
| |
| virtual agxSDK::Simulation * | getSimulationUnsafe () const =0 |
| |
| virtual agx::Real | getTimeStep () const =0 |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test. More...
|
| |
| virtual void | postParallelRun ()=0 |
| |
| virtual void | preParallelRun ()=0 |
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
| |
| virtual bool | remove (agxCollide::Geometry *geometry)=0 |
| |
| virtual bool | remove (agx::RigidBody *body, bool removeGeometries=true)=0 |
| |
| virtual bool | remove (agx::Constraint *c)=0 |
| |
| virtual bool | remove (agx::StrongInteraction *si)=0 |
| |
| virtual bool | remove (agxSDK::Assembly *assembly)=0 |
| |
| virtual bool | remove (agxSDK::EventListener *listener)=0 |
| |
| virtual void | removeGroup (agxCollide::Geometry *geometry, agx::UInt32 id)=0 |
| |
| virtual void | removeGroup (agxCollide::Geometry *geometry, const agx::Name &name)=0 |
| |
| virtual void | setEnable (agxCollide::Geometry *geometry, bool enable)=0 |
| |
| virtual void | setEnable (agx::RigidBody *body, bool enable)=0 |
| |
| virtual void | setSimulation (agxSDK::Simulation *simulation)=0 |
| |
| virtual void | transferToDefaultStorage (agx::ContactMaterial *material)=0 |
| |
| virtual void | transferToSimulationStorage (agx::ContactMaterial *material)=0 |
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
Interface class used by internal objects running in parallel.
For documentation, check agxWire::SimulationProxy.
Definition at line 49 of file SimulationProxy.h.
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.