LLVM API Documentation
#include <OwningPtr.h>

Public Member Functions | |
| OwningArrayPtr (T *P=0) | |
| ~OwningArrayPtr () | |
| void | reset (T *P=0) |
| T * | take () |
| T & | operator[] (std::ptrdiff_t i) const |
| T * | get () const |
| LLVM_EXPLICIT | operator bool () const |
| bool | operator! () const |
| void | swap (OwningArrayPtr &RHS) |
OwningArrayPtr smart pointer - OwningArrayPtr provides the same functionality as OwningPtr, except that it works for array types.
Definition at line 92 of file OwningPtr.h.
|
inlineexplicit |
Definition at line 97 of file OwningPtr.h.
|
inline |
Definition at line 108 of file OwningPtr.h.
|
inline |
Definition at line 135 of file OwningPtr.h.
Referenced by llvm::zlib::uncompress().
|
inline |
Definition at line 136 of file OwningPtr.h.
|
inline |
Definition at line 137 of file OwningPtr.h.
|
inline |
Definition at line 130 of file OwningPtr.h.
|
inline |
reset - Change the current pointee to the specified pointer. Note that calling this with any pointer (including a null pointer) deletes the current pointer.
Definition at line 115 of file OwningPtr.h.
Referenced by llvm::ComputeEditDistance(), and llvm::RegisterClassInfo::runOnMachineFunction().
|
inline |
Definition at line 139 of file OwningPtr.h.
Referenced by llvm::swap().
|
inline |
take - Reset the owning pointer to null and return its pointer. This does not delete the pointer before returning it.
Definition at line 124 of file OwningPtr.h.