LLVM API Documentation

Public Member Functions
llvm::RefCountedBase< Derived > Class Template Reference

#include <IntrusiveRefCntPtr.h>

Inheritance diagram for llvm::RefCountedBase< Derived >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

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


Constructor & Destructor Documentation

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

Definition at line 49 of file IntrusiveRefCntPtr.h.

template<class Derived>
llvm::RefCountedBase< Derived >::RefCountedBase ( const RefCountedBase< Derived > &  ) [inline]

Definition at line 50 of file IntrusiveRefCntPtr.h.


Member Function Documentation

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

Definition at line 53 of file IntrusiveRefCntPtr.h.

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

Definition at line 52 of file IntrusiveRefCntPtr.h.


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