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

Method set

Engine/source/core/util/refBase.h:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121protected:
122 void set(WeakRefBase::WeakReference * ref)
123 {
124 if (mReference)
125 mReference->decRefCount();
126 mReference = NULL;
127 if (ref)
128 {
129 mReference = ref;
130 mReference->incRefCount();
131 }
132 }
133
134 void set(T * obj) { set(obj ? obj->getWeakReference() : (WeakRefBase::WeakReference *)NULL); }
135private:

Callers

nothing calls this directly

Calls 4

getWeakReferenceMethod · 0.80
setFunction · 0.50
decRefCountMethod · 0.45
incRefCountMethod · 0.45

Tested by

no test coverage detected