class RefCountedBase

Declaration

template <class Derived>
class RefCountedBase { /* full declaration omitted */ };

Description

A CRTP mixin class that adds reference counting to a type. The lifetime of an object which inherits from RefCountedBase is managed by calls to Release() and Retain(), which increment and decrement the object's refcount, respectively. When a Release() call decrements the refcount to 0, the object deletes itself.

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

Templates

Derived

Method Overview

Methods

RefCountedBase<Derived>()

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

RefCountedBase<Derived>(
    const RefCountedBase<Derived>&)

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

Parameters

const RefCountedBase<Derived>&

void Release() const

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

void Retain() const

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