LLVM API Documentation

llvm::RefCountedBase< Derived > Class Template Reference

#include <IntrusiveRefCntPtr.h>

Collaboration diagram for llvm::RefCountedBase< Derived >:

Collaboration graph
[legend]

List of all members.

Protected Member Functions

 RefCountedBase ()
void Retain ()
void Release ()

Friends

class IntrusiveRefCntPtr< Derived >


Detailed Description

template<class Derived>
class llvm::RefCountedBase< Derived >

RefCountedBase - A generic base class for objects that wish to have their lifetimes managed using reference counts. Classes subclass RefCountedBase to obtain such functionality, and are typically handled with IntrusivePtr "smart pointers" (see below) which automatically handle the management of reference counts. Objects that subclass RefCountedBase should not be allocated on the stack, as invoking "delete" (which is called when the reference count hits 0) on such objects is an error.

Definition at line 44 of file IntrusiveRefCntPtr.h.


Constructor & Destructor Documentation

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

Definition at line 48 of file IntrusiveRefCntPtr.h.


Member Function Documentation

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

Definition at line 50 of file IntrusiveRefCntPtr.h.

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

Definition at line 51 of file IntrusiveRefCntPtr.h.


Friends And Related Function Documentation

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

Definition at line 56 of file IntrusiveRefCntPtr.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.