5#include "exception.hpp"
13 inline HandleGuard<HandleOnly>::HandleGuard(
void *handle) noexcept
14 : HandleGuard<HandleOnly>(handle, [](
void *handle) { CVB_CALL_CAPI(
ReleaseObject(handle)); })
20 class HandleOnly final
33 return handle_.Handle();
53 explicit HandleOnly(HandleGuard<HandleOnly> &&guard) noexcept
58 HandleGuard<HandleOnly> handle_;
20 class HandleOnly final {
…};
HandleOnly class is as it says a handle only.
Definition handle_only.hpp:21
static std::shared_ptr< HandleOnly > FromHandle(HandleGuard< HandleOnly > &&guard)
Creates a handle only from a classic API handle.
Definition handle_only.hpp:44
void * Handle() const noexcept
Classic API node handle.
Definition handle_only.hpp:31
cvbbool_t ReleaseObject(OBJ &Object)
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17