MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / get

Method get

examples/qtsupport/chatwidget.hpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51private:
52 template <typename T>
53 T* get(T*& member, const char* name) {
54 if (member == nullptr) {
55 member = findChild<T*>(name);
56 if (member == nullptr)
57 throw std::runtime_error("unable to find child: " + std::string(name));
58 }
59 return member;
60 }
61
62 inline QLineEdit* input() {
63 return get(input_, "input");

Callers 1

caf_mainFunction · 0.45

Calls 1

stringClass · 0.85

Tested by

no test coverage detected