|
co_usb
|
Wrapper for nullable libusb_device that increments ref count on ctor and decrements on dtor. More...
#include <device_ref.hpp>
Public Member Functions | |
| device_ref () noexcept | |
| constructs a null ref | |
| device_ref (libusb_device *dev) noexcept | |
| constructs a new ref object and increments ref count of underlying device | |
| ~device_ref () noexcept | |
| device_ref (const device_ref &) noexcept | |
| device_ref & | operator= (const device_ref &) noexcept |
| libusb_device * | get () const noexcept |
Wrapper for nullable libusb_device that increments ref count on ctor and decrements on dtor.
Objects of this type must be used for returning devices from hotplug callbacks since normally devices obtained through this callback will expire unless their ref count was incremented.
|
noexcept |
constructs a null ref
|
explicitnoexcept |
constructs a new ref object and increments ref count of underlying device
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |