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

Methods

IntrusiveRefCntPtr<T>()

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:141

IntrusiveRefCntPtr<T>(T* obj)

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:142

Parameters

T* obj

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)

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:144

Parameters

IntrusiveRefCntPtr<T>&& 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)

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:152

Templates

X

Parameters

const IntrusiveRefCntPtr<X>& S

T* get() const

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:165

bool operator bool() const

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:166

void reset()

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:174

void resetWithoutRelease()

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:179

void swap(IntrusiveRefCntPtr<T>& other)

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:168

Parameters

IntrusiveRefCntPtr<T>& other

~IntrusiveRefCntPtr<T>()

Declared at: llvm/include/llvm/ADT/IntrusiveRefCntPtr.h:156