MCPcopy Create free account
hub / github.com/MyGUI/mygui / advise

Method advise

UnitTests/TestApp/DemoKeeper.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 {
19 public:
20 void advise(A* _a)
21 {
22 if (!_a->event.exist(this, &B::onEvent))
23 _a->event.connect(this, &B::onEvent);
24 }
25
26 void onEvent(A* _sender)
27 {

Callers 1

createSceneMethod · 0.80

Calls 2

existMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected