LLVM API Documentation

llvm::OwningArrayPtr< T > Class Template Reference

#include <OwningPtr.h>

Collaboration diagram for llvm::OwningArrayPtr< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OwningArrayPtr (T *P=0)
 ~OwningArrayPtr ()
void reset (T *P=0)
Ttake ()
Toperator[] (std::ptrdiff_t i) const
Tget () const
 operator bool () const
bool operator! () const
void swap (OwningArrayPtr &RHS)


Detailed Description

template<class T>
class llvm::OwningArrayPtr< T >

OwningArrayPtr smart pointer - OwningArrayPtr provides the same functionality as OwningPtr, except that it works for array types.

Definition at line 81 of file OwningPtr.h.


Constructor & Destructor Documentation

template<class T>
llvm::OwningArrayPtr< T >::OwningArrayPtr ( T P = 0  )  [inline, explicit]

Definition at line 86 of file OwningPtr.h.

template<class T>
llvm::OwningArrayPtr< T >::~OwningArrayPtr (  )  [inline]

Definition at line 88 of file OwningPtr.h.


Member Function Documentation

template<class T>
void llvm::OwningArrayPtr< 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 95 of file OwningPtr.h.

References T.

template<class T>
T* llvm::OwningArrayPtr< 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 104 of file OwningPtr.h.

References T.

template<class T>
T& llvm::OwningArrayPtr< T >::operator[] ( std::ptrdiff_t  i  )  const [inline]

Definition at line 110 of file OwningPtr.h.

template<class T>
T* llvm::OwningArrayPtr< T >::get (  )  const [inline]

Definition at line 115 of file OwningPtr.h.

template<class T>
llvm::OwningArrayPtr< T >::operator bool (  )  const [inline]

Definition at line 116 of file OwningPtr.h.

template<class T>
bool llvm::OwningArrayPtr< T >::operator! (  )  const [inline]

Definition at line 117 of file OwningPtr.h.

template<class T>
void llvm::OwningArrayPtr< T >::swap ( OwningArrayPtr< T > &  RHS  )  [inline]

Definition at line 119 of file OwningPtr.h.

References llvm::OwningArrayPtr< T >::Ptr, and T.

Referenced by llvm::swap().


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.