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

Method clearDevices

src/libfreenect2.cpp:460–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458 }
459
460 void clearDevices()
461 {
462 if (!initialized)
463 return;
464
465 DeviceVector devices(devices_.begin(), devices_.end());
466
467 for(DeviceVector::iterator it = devices.begin(); it != devices.end(); ++it)
468 {
469 delete (*it);
470 }
471
472 if(!devices_.empty())
473 {
474 LOG_WARNING << "after deleting all devices the internal device list should be empty!";
475 }
476 }
477
478 void clearDeviceEnumeration()
479 {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected