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

Function add_entry

library/modules/Persistence.cpp:261–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static void add_entry(std::multimap<std::string, std::shared_ptr<Persistence::DataEntry>> & entity_store_entry,
262 std::shared_ptr<Persistence::DataEntry> entry) {
263 entity_store_entry.emplace(entry->key, entry);
264 entry_cache.emplace(entry->entry_id, entry);
265}
266
267static void add_entry(int entity_id, std::shared_ptr<Persistence::DataEntry> entry) {
268 add_entry(store[entity_id], entry);

Callers 2

load_fileFunction · 0.85
addItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected