template <typename T>
class Unowned
Defined at line 23 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
Wraps a handle to an object to provide type-safe access to its operations
but does not take ownership of it. The handle is not closed when the
wrapper is destroyed.
All use of Unowned
<Object
<T
>> as an Object
<T
> is via a dereference operator,
as illustrated below:
void do_something(const fdf::Channel
&
channel);
void example(fdf_handle_t channel_handle) {
do_something(*fdf::Unowned
<Channel
>(channel_handle));
}
Public Methods
void Unowned<T> (typename T::HandleType h)
Defined at line 25 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
void Unowned<T> (const T & owner)
Defined at line 26 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
void Unowned<T> (const Unowned<T> & other)
Defined at line 27 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
void Unowned<T> ()
Defined at line 28 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
void Unowned<T> (Unowned<T> && other)
Defined at line 29 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
void ~Unowned<T> ()
Defined at line 31 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
Unowned<T> & operator= (const Unowned<T> & other)
Defined at line 33 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
Unowned<T> & operator= (Unowned<T> && other)
Defined at line 41 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
const T & operator* ()
Defined at line 47 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h
const T * operator-> ()
Defined at line 48 of file ../../sdk/lib/driver/runtime/include/lib/fdf/cpp/unowned.h