#include <agx/config/AGX_DEBUG_REFERENCED.h>
#include <agx/config/AGX_DEBUG_TRACK_REFERENCED_OBJECTS.h>
#include <agx/ref_ptr.h>
#include <agx/observer_ptr.h>
#include <agx/agxCore_export.h>
#include <agx/AtomicValue.h>
#include <agx/ScopeLock.h>
#include <mutex>
#include <agx/Vector.h>
#include <agx/PushDisableWarnings.h>
#include <agx/PopDisableWarnings.h>
Go to the source code of this file.
|
| | agx |
| | The agx namespace contains the dynamics/math part of the AGX Dynamics API.
|
| |
◆ AGX_DECLARE_POINTER_TYPES
| #define AGX_DECLARE_POINTER_TYPES |
( |
|
type | ) |
|
Value:class type; \
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Smart pointer for handling referenced counted objects.
Definition at line 254 of file Referenced.h.
◆ AGX_EXPIRED_SCOPE_ALLOCATION
| #define AGX_EXPIRED_SCOPE_ALLOCATION (-0xABC) |
◆ INSERT_OBSERVER
| #define INSERT_OBSERVER |
( |
|
obs | ) |
if ( !m_observers->contains( obs ) ) m_observers->push_back( obs ) |
◆ OBSERVER_CONTAINER_TYPE
| #define OBSERVER_CONTAINER_TYPE 1 |
◆ ObserverContainer
| #define ObserverContainer VectorPOD< Observer* >* |
◆ REMOVE_OBSERVER
| #define REMOVE_OBSERVER |
( |
|
obs | ) |
if ( m_observers ) m_observers->findAndErase( obs ) |
◆ REPORT_REFERENCED_DELETED
| #define REPORT_REFERENCED_DELETED |
Value:if ( m_observers ) { \
for ( size_t i = 0, numObservers = m_observers->size(); i < numObservers; ++i ) \
(*m_observers)[ i ]->objectDeleted( this ); \
delete m_observers; \
m_observers = nullptr; \
}
Definition at line 59 of file Referenced.h.