| 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 | { |