![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Self reference-counting objects, as requred by AngelScript garbage collector.
Definition at line 26 of file RefCountingObject.h.
Public Member Functions | |
| RefCountingObject () | |
| virtual | ~RefCountingObject () |
| void | AddRef () |
| void | Release () |
Static Public Member Functions | |
| static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
| static void | RegisterRefCountingObjectGeneric (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
| static void | AddRefGeneric (AS_NAMESPACE_QUALIFIER asIScriptGeneric *gen) |
| static void | ReleaseGeneric (AS_NAMESPACE_QUALIFIER asIScriptGeneric *gen) |
Data Fields | |
| int | m_refcount = 0 |
| std::mutex | m_refcount_mtx |
|
inline |
Definition at line 29 of file RefCountingObject.h.
|
inlinevirtual |
Definition at line 34 of file RefCountingObject.h.
|
inline |
Definition at line 39 of file RefCountingObject.h.
|
inlinestatic |
Definition at line 101 of file RefCountingObject.h.
|
inlinestatic |
Definition at line 67 of file RefCountingObject.h.
|
inlinestatic |
Same as RegisterRefCountingObject() but uses the generic calling convention (for platforms with AS_MAX_PORTABILITY).
Definition at line 84 of file RefCountingObject.h.
|
inline |
Definition at line 48 of file RefCountingObject.h.
|
inlinestatic |
Definition at line 102 of file RefCountingObject.h.
| int RefCountingObject< T >::m_refcount = 0 |
Definition at line 104 of file RefCountingObject.h.
| std::mutex RefCountingObject< T >::m_refcount_mtx |
Definition at line 105 of file RefCountingObject.h.