LLVM API Documentation
#include <OwningPtr.h>


Public Member Functions | |
| OwningPtr (T *P=0) | |
| ~OwningPtr () | |
| void | reset (T *P=0) |
| T * | take () |
| T & | operator* () const |
| T * | operator-> () const |
| T * | get () const |
| operator bool () const | |
| bool | operator! () const |
| void | swap (OwningPtr &RHS) |
Definition at line 27 of file OwningPtr.h.
| llvm::OwningPtr< T >::OwningPtr | ( | T * | P = 0 |
) | [inline, explicit] |
Definition at line 32 of file OwningPtr.h.
| llvm::OwningPtr< T >::~OwningPtr | ( | ) | [inline] |
Definition at line 34 of file OwningPtr.h.
| void llvm::OwningPtr< T >::reset | ( | T * | P = 0 |
) | [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 41 of file OwningPtr.h.
Referenced by llvm::MemoryBuffer::getFile().
| T* llvm::OwningPtr< T >::take | ( | ) | [inline] |
take - Reset the owning pointer to null and return its pointer. This does not delete the pointer before returning it.
Definition at line 50 of file OwningPtr.h.
Referenced by llvm::MemoryBuffer::getFile(), llvm::ParseAssemblyFile(), and llvm::ParseAssemblyString().
| T& llvm::OwningPtr< T >::operator* | ( | ) | const [inline] |
Definition at line 56 of file OwningPtr.h.
| T* llvm::OwningPtr< T >::operator-> | ( | ) | const [inline] |
Definition at line 61 of file OwningPtr.h.
| T* llvm::OwningPtr< T >::get | ( | ) | const [inline] |
Definition at line 62 of file OwningPtr.h.
Referenced by llvm::ParseAssemblyFile(), and llvm::ParseAssemblyString().
| llvm::OwningPtr< T >::operator bool | ( | ) | const [inline] |
Definition at line 63 of file OwningPtr.h.
| bool llvm::OwningPtr< T >::operator! | ( | ) | const [inline] |
Definition at line 64 of file OwningPtr.h.
| void llvm::OwningPtr< T >::swap | ( | OwningPtr< T > & | RHS | ) | [inline] |
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.