MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getViewNode

Method getViewNode

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:521–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521Ref<ViewNode> ViewNodeTree::getViewNode(RawViewNodeId id) {
522 const auto& iterator = _rawViewNodes.find(id);
523 if (iterator == _rawViewNodes.end()) {
524 return nullptr;
525 }
526 return iterator->second;
527}
528
529void ViewNodeTree::setViewToRootViewNode(const Ref<ViewNode>& rootViewNode, const Ref<View>& view) {
530 auto& viewTransactionScope = getCurrentViewTransactionScope();

Callers 6

TEST_PFunction · 0.45
setCurrentMethod · 0.45
setParentMethod · 0.45

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by 1

TEST_PFunction · 0.36