WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::RefCountedBase< Derived > Class Template Reference

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

#include <IntrusiveRefCntPtr.h>

Public Member Functions

 RefCountedBase (const RefCountedBase &)
 
void Retain () const
 
void Release () const
 

Detailed Description

template<class Derived>
class wpi::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.


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