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

Method clearDevices

src/libfreenect2.cpp:619–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617 }
618
619 void clearDevices()
620 {
621 DeviceVector devices(devices_.begin(), devices_.end());
622
623 for(DeviceVector::iterator it = devices.begin(); it != devices.end(); ++it)
624 {
625 delete (*it);
626 }
627
628 // Should never happen
629 if(!devices_.empty())
630 {
631 LOG_WARNING << "after deleting all REPLAY devices the internal device list should be empty!";
632 }
633 }
634
635 Freenect2Device *openDevice(const std::vector<std::string>& frame_filenames, const PacketPipeline *pipeline);
636};

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected