struct InterceptRefCounted
Declaration
struct InterceptRefCounted : public 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/unittests/ADT/IntrusiveRefCntPtrTest.cpp:39
Inherits from: RefCountedBase
Member Variables
- public bool* const Released
- public bool* const Retained
Method Overview
- public InterceptRefCounted(bool * Released, bool * Retained)
Methods
ΒΆInterceptRefCounted(bool* Released,
bool* Retained)
InterceptRefCounted(bool* Released,
bool* Retained)
Declared at: llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp:40
Parameters
- bool* Released
- bool* Retained