LLVM
8.0.1
|
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 136 of file IntrusiveRefCntPtr.h.
using llvm::IntrusiveRefCntPtr< T >::element_type = T |
Definition at line 140 of file IntrusiveRefCntPtr.h.
|
explicitdefault |
|
inline |
Definition at line 143 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 144 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 145 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 148 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 153 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 157 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 166 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 167 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 164 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 165 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 159 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 175 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 180 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 169 of file IntrusiveRefCntPtr.h.
Definition at line 193 of file IntrusiveRefCntPtr.h.