MCPcopy Create free account
hub / github.com/MIT-SPARK/Hydra / addNodeToCache

Method addNodeToCache

src/backend/merge_handler.cpp:250–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void MergeHandler::addNodeToCache(const SceneGraphNode& node,
251 std::map<NodeId, NodeInfo::Ptr>& cache,
252 bool check_if_present) {
253 if (node.layer != DsgLayers::OBJECTS && node.layer != DsgLayers::PLACES) {
254 return;
255 }
256
257 if (check_if_present && cache.count(node.id)) {
258 return;
259 }
260
261 // TODO(nathan) dynamic layers might be a problem here
262 auto ret = cache.emplace(node.id, std::make_unique<NodeInfo>());
263 updateNodeEntry(node, *ret.first->second);
264}
265
266void MergeHandler::updateCacheEntryFromInfo(const MeshVertices::Ptr& mesh,
267 const UpdateInfo& info,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected