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

Method triggerCallbacks

inc/osvr/Common/InterfaceCallbacks.h:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73 template <typename ReportType>
74 void triggerCallbacks(util::time::TimeValue const &timestamp,
75 ReportType const &report) const {
76 for (auto const &f :
77 boost::fusion::at_key<ReportType>(m_callbacks)) {
78 f(&timestamp, &report);
79 }
80 /// @todo do we fail silently or throw exception if we are asked for
81 /// state we don't have?
82 }
83
84 private:
85 CallbackMap m_callbacks;

Callers 11

m_handleImageMethod · 0.45
m_handleMethod · 0.45
m_handleLocationMethod · 0.45
m_handleDirectionMethod · 0.45
m_handleEyeTracking3dMethod · 0.45
m_handleEyeTracking2dMethod · 0.45
m_handleEyeBlinkMethod · 0.45
m_handleMethod · 0.45
m_reportMethod · 0.45
m_handleNaviVelocityMethod · 0.45
m_handleNaviPositionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected