MCPcopy Create free account
hub / github.com/AshampooSystems/boden / lazyInitCore

Method lazyInitCore

framework/ui/src/View.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 const std::type_info &View::typeInfoForCoreCreation() const { return typeid(*this); }
115
116 void View::lazyInitCore() const
117 {
118 if (_core) {
119 return;
120 }
121
122 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast)
123 auto un_const_this = const_cast<View *>(this);
124
125 _core = _viewCoreFactory->createViewCore(typeInfoForCoreCreation());
126 un_const_this->bindViewCore();
127 }
128
129 std::shared_ptr<View::Core> View::viewCore()
130 {

Callers

nothing calls this directly

Calls 2

createViewCoreMethod · 0.80
bindViewCoreMethod · 0.45

Tested by

no test coverage detected