class unowned
Defined at line 309 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
Forward declaration for borrow method.
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 zx::event& event);
void example(zx_handle_t event_handle) { do_something(*zx::unowned<event>(event_handle)); }
Convenience aliases are provided for all object types, for example:
zx::unowned_event(handle)->signal(..)
Functions
unowned<T>
public void unowned<T>(zx_handle_t h)
Defined at line 311 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
unowned<T>
public void unowned<T>(const T & owner)
Defined at line 312 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
unowned<T>
public void unowned<T>(const unowned<T> & other)
Defined at line 313 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
unowned<T>
public void unowned<T>()
Defined at line 314 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
unowned<T>
public void unowned<T>(unowned<T> && other)
Defined at line 315 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
~unowned<T>
public void ~unowned<T>()
Defined at line 317 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator=
public unowned<T> & operator=(const unowned<T> & other)
Defined at line 319 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator=
public unowned<T> & operator=(unowned<T> && other)
Defined at line 327 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator*
public const T & operator*()
Defined at line 333 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator->
public const T * operator->()
Defined at line 334 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h