LLVM
9.0.0svn
|
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 > | |
IntrusiveRefCntPtr (IntrusiveRefCntPtr< X > &&S) | |
template<class X > | |
IntrusiveRefCntPtr (const IntrusiveRefCntPtr< 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 () |
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 135 of file IntrusiveRefCntPtr.h.
using llvm::IntrusiveRefCntPtr< T >::element_type = T |
Definition at line 139 of file IntrusiveRefCntPtr.h.
|
explicitdefault |
|
inline |
Definition at line 142 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 143 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 144 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 147 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 152 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 156 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 165 of file IntrusiveRefCntPtr.h.
Referenced by llvm::simplify_type< IntrusiveRefCntPtr< T > >::getSimplifiedValue(), llvm::simplify_type< const IntrusiveRefCntPtr< T > >::getSimplifiedValue(), llvm::operator!=(), and llvm::operator==().
|
inlineexplicit |
Definition at line 166 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 163 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 164 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 158 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 174 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 179 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 168 of file IntrusiveRefCntPtr.h.
Definition at line 192 of file IntrusiveRefCntPtr.h.