| HDK
    | 
Wrapper around hboost::intrusive_ptr. More...
#include <UT_IntrusivePtr.h>
 Inheritance diagram for UT_IntrusivePtr< T >:
 Inheritance diagram for UT_IntrusivePtr< T >:| Public Member Functions | |
| SYS_FORCE_INLINE | UT_IntrusivePtr () noexcept | 
| SYS_FORCE_INLINE | UT_IntrusivePtr (T *p) | 
| SYS_FORCE_INLINE | UT_IntrusivePtr (T *p, bool add_ref) | 
| SYS_FORCE_INLINE | UT_IntrusivePtr (const UT_IntrusivePtr< T > &p) | 
| template<typename Y > | |
| SYS_FORCE_INLINE | UT_IntrusivePtr (const UT_IntrusivePtr< Y > &p) | 
| SYS_FORCE_INLINE | UT_IntrusivePtr (UT_IntrusivePtr< T > &&p) | 
| template<typename Y > | |
| SYS_FORCE_INLINE | UT_IntrusivePtr (UT_IntrusivePtr< Y > &&p) | 
| SYS_FORCE_INLINE UT_IntrusivePtr< T > & | operator= (const UT_IntrusivePtr< T > &that) | 
| template<typename Y > | |
| SYS_FORCE_INLINE UT_IntrusivePtr< T > & | operator= (const UT_IntrusivePtr< Y > &that) | 
| SYS_FORCE_INLINE UT_IntrusivePtr< T > & | operator= (UT_IntrusivePtr< T > &&that) | 
| template<typename Y > | |
| SYS_FORCE_INLINE UT_IntrusivePtr< T > & | operator= (UT_IntrusivePtr< Y > &&that) | 
Wrapper around hboost::intrusive_ptr.
An intrusive pointer assumes that the referenced object implements reference counting on itself. The reference counting is implemented using the methods intrusive_ptr_add_ref() and intrusive_ptr_release().
For simple usages, simply derive from UT_IntrusiveRefCounter.
Here's a roll your own example:
Definition at line 55 of file UT_IntrusivePtr.h.
| 
 | inlinenoexcept | 
Definition at line 59 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 66 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 70 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 74 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 79 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 83 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 88 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 92 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 100 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 107 of file UT_IntrusivePtr.h.
| 
 | inline | 
Definition at line 115 of file UT_IntrusivePtr.h.