LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Protected Member Functions | Friends | List of all members
llvm::RefCountedBaseVPTR Class Reference

#include <IntrusiveRefCntPtr.h>

Protected Member Functions

 RefCountedBaseVPTR ()
 
 RefCountedBaseVPTR (const RefCountedBaseVPTR &)
 
virtual ~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.

Definition at line 66 of file IntrusiveRefCntPtr.h.

Constructor & Destructor Documentation

llvm::RefCountedBaseVPTR::RefCountedBaseVPTR ( )
inlineprotected

Definition at line 71 of file IntrusiveRefCntPtr.h.

llvm::RefCountedBaseVPTR::RefCountedBaseVPTR ( const RefCountedBaseVPTR )
inlineprotected

Definition at line 72 of file IntrusiveRefCntPtr.h.

virtual llvm::RefCountedBaseVPTR::~RefCountedBaseVPTR ( )
inlineprotectedvirtual

Definition at line 74 of file IntrusiveRefCntPtr.h.

Member Function Documentation

void llvm::RefCountedBaseVPTR::Release ( ) const
inlineprotected

Definition at line 77 of file IntrusiveRefCntPtr.h.

void llvm::RefCountedBaseVPTR::Retain ( ) const
inlineprotected

Definition at line 76 of file IntrusiveRefCntPtr.h.

Friends And Related Function Documentation

template<typename T >
friend struct IntrusiveRefCntPtrInfo
friend

Definition at line 83 of file IntrusiveRefCntPtr.h.


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