|
LLVM 24.0.0git
|
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase. More...
#include "llvm/ADT/IntrusiveRefCntPtr.h"
Public Types | |
| using | element_type = T |
Public Member Functions | |
| IntrusiveRefCntPtr ()=default | |
| IntrusiveRefCntPtr (T *obj) | |
| IntrusiveRefCntPtr (const IntrusiveRefCntPtr &S) | |
| IntrusiveRefCntPtr (IntrusiveRefCntPtr &&S) | |
| template<class X, std::enable_if_t< std::is_convertible< X *, T * >::value, bool > = true> | |
| IntrusiveRefCntPtr (IntrusiveRefCntPtr< X > S) | |
| template<class X, std::enable_if_t< std::is_convertible< X *, T * >::value, bool > = true> | |
| IntrusiveRefCntPtr (std::unique_ptr< X > S) | |
| ~IntrusiveRefCntPtr () | |
| IntrusiveRefCntPtr & | operator= (IntrusiveRefCntPtr S) |
| T & | operator* () const |
| T * | operator-> () const |
| T * | get () const |
| operator bool () const | |
| void | swap (IntrusiveRefCntPtr &other) |
| void | reset () |
| void | resetWithoutRelease () |
| unsigned | useCount () const |
Friends | |
| template<typename X> | |
| class | IntrusiveRefCntPtr |
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase.
This class increments its pointee's reference count when it is created, and decrements its refcount when it's destroyed (or is changed to point to a different object).
Definition at line 174 of file IntrusiveRefCntPtr.h.
| using llvm::IntrusiveRefCntPtr< T >::element_type = T |
Definition at line 178 of file IntrusiveRefCntPtr.h.
|
explicitdefault |
|
inline |
Definition at line 181 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 182 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 183 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 187 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 193 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 197 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 206 of file IntrusiveRefCntPtr.h.
Referenced by llvm::orc::JITDylib::define(), llvm::orc::JITDylib::define(), llvm::orc::JITLinkReentryTrampolines::emit(), llvm::simplify_type< const IntrusiveRefCntPtr< T > >::getSimplifiedValue(), and llvm::simplify_type< IntrusiveRefCntPtr< T > >::getSimplifiedValue().
|
inlineexplicit |
Definition at line 207 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 204 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 205 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 199 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 215 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 220 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 209 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 222 of file IntrusiveRefCntPtr.h.
Definition at line 237 of file IntrusiveRefCntPtr.h.