LLVM API Documentation

llvm::RefCountedBaseVPTR< Derived > Class Template Reference

#include <IntrusiveRefCntPtr.h>

Inheritance diagram for llvm::RefCountedBaseVPTR< Derived >:
[legend]
Collaboration diagram for llvm::RefCountedBaseVPTR< Derived >:
[legend]

List of all members.

Protected Member Functions

 RefCountedBaseVPTR ()
virtual ~RefCountedBaseVPTR ()
void Retain ()
void Release ()

Friends

class IntrusiveRefCntPtr< Derived >


Detailed Description

template<class Derived>
class llvm::RefCountedBaseVPTR< Derived >

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 68 of file IntrusiveRefCntPtr.h.


Constructor & Destructor Documentation

template<class Derived>
llvm::RefCountedBaseVPTR< Derived >::RefCountedBaseVPTR (  )  [inline, protected]

Definition at line 72 of file IntrusiveRefCntPtr.h.

template<class Derived>
virtual llvm::RefCountedBaseVPTR< Derived >::~RefCountedBaseVPTR (  )  [inline, protected, virtual]

Definition at line 73 of file IntrusiveRefCntPtr.h.


Member Function Documentation

template<class Derived>
void llvm::RefCountedBaseVPTR< Derived >::Retain (  )  [inline, protected]

Definition at line 75 of file IntrusiveRefCntPtr.h.

template<class Derived>
void llvm::RefCountedBaseVPTR< Derived >::Release (  )  [inline, protected]

Definition at line 76 of file IntrusiveRefCntPtr.h.


Friends And Related Function Documentation

template<class Derived>
friend class IntrusiveRefCntPtr< Derived > [friend]

Definition at line 81 of file IntrusiveRefCntPtr.h.


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