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

Method getViewFactory

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

Source from the content-addressed store, hash-verified

204}
205
206Ref<ViewFactory> ViewNodeTree::getViewFactory(const StringBox& viewClassName) const {
207 const auto& it = _viewFactories.find(viewClassName);
208 if (it == _viewFactories.end()) {
209 return nullptr;
210 }
211
212 return it->second;
213}
214
215Ref<ViewFactory> ViewNodeTree::getOrCreateViewFactory(const StringBox& viewClassName) {
216 auto viewFactory = getViewFactory(viewClassName);

Callers 7

TEST_PFunction · 0.45
createNodeMethod · 0.45
createRootViewMethod · 0.45
writeViewNodeMethod · 0.45
visitMethod · 0.45
setAttributeMethod · 0.45

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by 3

TEST_PFunction · 0.36
createNodeMethod · 0.36
createRootViewMethod · 0.36