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

Function setOptional

src/osvr/Connection/DeviceInitObject.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56template <typename T>
57inline bool setOptional(OSVR_ChannelCount input, T ptr,
58 boost::optional<OSVR_ChannelCount> &dest) {
59 if (0 == input || nullptr == ptr) {
60 dest.reset();
61 return false;
62 }
63 dest = input;
64 return true;
65}
66
67void OSVR_DeviceInitObject::setAnalogs(
68 OSVR_ChannelCount num, osvr::connection::AnalogServerInterface **iface) {

Callers 2

setAnalogsMethod · 0.85
setButtonsMethod · 0.85

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected