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

Method m_addComponent

src/osvr/Common/BaseDevice.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void BaseDevice::m_addComponent(DeviceComponentPtr component) {
49 if (!component) {
50 throw std::logic_error(
51 "Tried to add a null component pointer to a base device!");
52 }
53 m_components.push_back(component);
54 component->recordParent(*this);
55 }
56
57 void BaseDevice::registerHandler(vrpn_MESSAGEHANDLER handler,
58 void *userdata,

Callers

nothing calls this directly

Calls 2

recordParentMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected