MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / decRefCount

Method decRefCount

Engine/source/core/util/refBase.h:207–212  ·  view source on GitHub ↗

Decrements the reference count.

Source from the content-addressed store, hash-verified

205
206 /// Decrements the reference count.
207 void decRefCount()
208 {
209 AssertFatal(mRefCount, "Decrementing a reference with refcount 0!");
210 if(!--mRefCount)
211 destroySelf();
212 }
213
214protected:
215 U32 mRefCount; ///< reference counter for StrongRefPtr objects

Callers 5

setMethod · 0.45
decRefMethod · 0.45
~StrongWeakRefPtrMethod · 0.45
_setMethod · 0.45
clearWeakReferencesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected