MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / get

Method get

engine/Poseidon/World/Model/ModelCache.cpp:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154std::shared_ptr<Poseidon::Model::Model> ModelCache::get(const std::string& filePath) const
155{
156 std::string key = normalizePath(filePath);
157 auto it = _cache.find(key);
158 return (it != _cache.end()) ? it->second : nullptr;
159}
160
161bool ModelCache::unload(const std::string& filePath)
162{

Callers 4

LookupMethod · 0.45
FindMethod · 0.45
MostRecentMethod · 0.45
LeastRecentMethod · 0.45

Calls 1

normalizePathFunction · 0.85

Tested by

no test coverage detected