CVB++ 14.0
HandleOnly Class Referencefinal

HandleOnly class is as it says a handle only. More...

#include <cvb/handle_only.hpp>

Public Member Functions

void * Handle () const noexcept
 Classic API node handle. More...
 

Static Public Member Functions

static std::shared_ptr< HandleOnlyFromHandle (HandleGuard< HandleOnly > &&guard)
 Creates a handle only from a classic API handle. More...
 

Detailed Description

HandleOnly class is as it says a handle only.

Member Function Documentation

◆ FromHandle()

static std::shared_ptr< HandleOnly > FromHandle ( HandleGuard< HandleOnly > &&  guard)
inlinestatic

Creates a handle only from a classic API handle.

Parameters
[in]guardLife time guard for C-API handle.
Returns
The handle only created from the classic API handle.
Exceptions
Anyexception derived from std::exception including CvbException.

The handle only takes ownership of the handle, so you must share it before using this function.

◆ Handle()

void * Handle ( ) const
inlinenoexcept

Classic API node handle.

Returns
Classic API handle.
Exceptions
Doesnot throw any exception.

It is normally not necessary to work with this handle.