class IntrusiveRefCntPtr
Declaration
template <typename T>
class IntrusiveRefCntPtr { /* full declaration omitted */ };
Description
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).
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:135
Templates
- T
Method Overview
- public IntrusiveRefCntPtr<T>()
- public IntrusiveRefCntPtr<T>(T * obj)
- public IntrusiveRefCntPtr<T>(const IntrusiveRefCntPtr<T> & S)
- public IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<T> && S)
- public template <class X> IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<X> && S)
- public template <class X> IntrusiveRefCntPtr<T>(const IntrusiveRefCntPtr<X> & S)
- public T * get() const
- public bool operator bool() const
- public void reset()
- public void resetWithoutRelease()
- public void swap(IntrusiveRefCntPtr<T> & other)
- public ~IntrusiveRefCntPtr<T>()
Methods
¶IntrusiveRefCntPtr<T>()
IntrusiveRefCntPtr<T>()
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:141
¶IntrusiveRefCntPtr<T>(T* obj)
IntrusiveRefCntPtr<T>(T* obj)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:142
Parameters
- T* obj
¶IntrusiveRefCntPtr<T>(
const IntrusiveRefCntPtr<T>& S)
IntrusiveRefCntPtr<T>(
const IntrusiveRefCntPtr<T>& S)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:143
Parameters
- const IntrusiveRefCntPtr<T>& S
¶IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<T>&& S)
IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<T>&& S)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:144
Parameters
- IntrusiveRefCntPtr<T>&& S
¶template <class X>
IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<X>&& S)
template <class X>
IntrusiveRefCntPtr<T>(IntrusiveRefCntPtr<X>&& S)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:147
Templates
- X
Parameters
- IntrusiveRefCntPtr<X>&& S
¶template <class X>
IntrusiveRefCntPtr<T>(
const IntrusiveRefCntPtr<X>& S)
template <class X>
IntrusiveRefCntPtr<T>(
const IntrusiveRefCntPtr<X>& S)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:152
Templates
- X
Parameters
- const IntrusiveRefCntPtr<X>& S
¶T* get() const
T* get() const
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:165
¶bool operator bool() const
bool operator bool() const
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:166
¶void reset()
void reset()
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:174
¶void resetWithoutRelease()
void resetWithoutRelease()
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:179
¶void swap(IntrusiveRefCntPtr<T>& other)
void swap(IntrusiveRefCntPtr<T>& other)
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:168
Parameters
- IntrusiveRefCntPtr<T>& other
¶~IntrusiveRefCntPtr<T>()
~IntrusiveRefCntPtr<T>()
Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:156