LLVM: llvm::RefCountedBase< Derived > Class Template Reference (original) (raw)

A CRTP mixin class that adds reference counting to a type. More...

#include "[llvm/ADT/IntrusiveRefCntPtr.h](IntrusiveRefCntPtr%5F8h%5Fsource.html)"

Inheritance diagram for llvm::RefCountedBase< Derived >:

Detailed Description

template
class llvm::RefCountedBase< Derived >

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.

Definition at line 76 of file IntrusiveRefCntPtr.h.

Constructor & Destructor Documentation

RefCountedBase() [2/2]

~RefCountedBase()

Member Function Documentation

operator=()

References RefCountedBase().

Release()

Retain()

UseCount()


The documentation for this class was generated from the following file: