MCPcopy Create free account
hub / github.com/DFHack/dfhack / ~virtual_identity

Method ~virtual_identity

library/DataDefs.cpp:308–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308virtual_identity::~virtual_identity()
309{
310 // Remove interpose entries, so that they don't try accessing this object later
311 auto& interpose_list = (*interpose_list_map)[this];
312 for (auto it = interpose_list.begin(); it != interpose_list.end(); ++it)
313 if (it->second)
314 it->second->on_host_delete(this);
315 interpose_list.clear();
316
317 // Remove global lookup table entries if we're from a plugin
318 if (is_plugin)
319 {
320 (*name_lookup).erase(getOriginalName());
321
322 if (vtable_ptr())
323 (*known).erase(vtable_ptr());
324 }
325}
326
327void virtual_identity::doInit(Core *core) const
328{

Callers

nothing calls this directly

Calls 7

getOriginalNameFunction · 0.85
vtable_ptrFunction · 0.85
on_host_deleteMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected