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

Method GetReference

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

Source from the content-addressed store, hash-verified

52 virtual const sASTypeInfo& GetReturnType(int mid) const = 0;
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};

Callers 5

SetMethod · 0.45
copyMethod · 0.45
SetWithKeysMethod · 0.45
SetWithValuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected