MCPcopy Create free account
hub / github.com/DFHack/dfhack / find

Method find

library/DataDefs.cpp:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342const virtual_identity *virtual_identity::find(std::string_view name)
343{
344 auto name_it = (*name_lookup).find(name);
345
346 return (name_it != (*name_lookup).end()) ? name_it->second : nullptr;
347}
348
349const virtual_identity *virtual_identity::get(virtual_ptr instance_ptr)
350{

Callers 15

sc_event_idMethod · 0.45
InitMainThreadMethod · 0.45
InitSimulationThreadMethod · 0.45
split_stringFunction · 0.45
console_is_utf8Function · 0.45
loadMethod · 0.45
dfhooks_initFunction · 0.45
dfhack_matinfo_findFunction · 0.45
items_findTypeFunction · 0.45
items_findSubtypeFunction · 0.45

Calls 3

endMethod · 0.45
getNameMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected