MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / notifyEvent

Method notifyEvent

src/osvr/Common/PathTreeObserver.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace common {
36
37 void PathTreeObserver::notifyEvent(
38 PathTreeEvents e, PathTreeObserver::callback_argument arg) const {
39 auto it = m_handlers.find(e);
40 if (end(m_handlers) != it) {
41 auto &callback = (*it).second;
42 if (callback) {
43 callback(arg);
44 }
45 }
46 }
47
48 void PathTreeObserver::setEventCallback(
49 PathTreeEvents e, PathTreeObserver::callback_type const &callback) {

Callers 1

replaceTreeMethod · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected