WPILibC++  unspecified
llvm::RefCountedBaseVPTR Class Reference

RefCountedBaseVPTR - A class that has the same function as RefCountedBase, but with a virtual destructor. More...

#include <IntrusiveRefCntPtr.h>

Protected Member Functions

 RefCountedBaseVPTR (const RefCountedBaseVPTR &)
 
void Retain () const
 
void Release () const
 

Friends

template<typename T >
struct IntrusiveRefCntPtrInfo
 

Detailed Description

RefCountedBaseVPTR - A class that has the same function as RefCountedBase, but with a virtual destructor.

Should be used instead of RefCountedBase for classes that already have virtual methods to enforce dynamic allocation via 'new'. Classes that inherit from RefCountedBaseVPTR can't be allocated on stack - attempting to do this will produce a compile error.


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