MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / tryGetDevice

Method tryGetDevice

src/libfreenect2.cpp:443–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441 }
442
443 bool tryGetDevice(libusb_device *usb_device, Freenect2DeviceImpl **device)
444 {
445 if (!initialized)
446 return false;
447
448 for(DeviceVector::iterator it = devices_.begin(); it != devices_.end(); ++it)
449 {
450 if((*it)->isSameUsbDevice(usb_device))
451 {
452 *device = *it;
453 return true;
454 }
455 }
456
457 return false;
458 }
459
460 void clearDevices()
461 {

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
isSameUsbDeviceMethod · 0.80

Tested by

no test coverage detected