MCPcopy Create free account
hub / github.com/devosoft/avida / RemoveReference

Method RemoveReference

avida-core/source/script/cASNativeObject.h:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54 inline cASNativeObject* GetReference() { m_ref_count++; return this; }
55 inline void RemoveReference() { m_ref_count--; if (m_ref_count == 0) delete this; }
56 inline bool IsShared() { return (m_ref_count > 1); }
57};
58

Callers 13

VisitAssignmentMethod · 0.45
VisitForeachBlockMethod · 0.45
VisitExpressionBinaryMethod · 0.45
VisitBuiltInCallMethod · 0.45
VisitFunctionCallMethod · 0.45
VisitUnpackTargetMethod · 0.45
asArrayMethod · 0.45
asBoolMethod · 0.45
asDictMethod · 0.45
asStringMethod · 0.45
CleanupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected