scoped_array< T > Class Template Reference

#include <utility.h>

Collaboration diagram for scoped_array< T >:
Collaboration graph
[legend]

Public Member Functions

 scoped_array (T *p=0)
 ~scoped_array ()
void reset (T *p=0)
T & operator[] (std::ptrdiff_t i) const
T * get () const
void swap (scoped_array &sp)

Private Member Functions

scoped_arrayoperator= (scoped_array const &)
 scoped_array (scoped_array const &)

Private Attributes

T * p_

Detailed Description

template<typename T>
class scoped_array< T >

Definition at line 57 of file utility.h.


Constructor & Destructor Documentation

template<typename T>
scoped_array< T >::scoped_array ( T *  p = 0  )  [inline, explicit]

Definition at line 59 of file utility.h.

template<typename T>
scoped_array< T >::~scoped_array (  )  [inline]

Definition at line 60 of file utility.h.

template<typename T>
scoped_array< T >::scoped_array ( scoped_array< T > const &   )  [private]

Member Function Documentation

template<typename T>
T* scoped_array< T >::get (  )  const [inline]

Definition at line 70 of file utility.h.

Referenced by find_nearest_line().

Here is the caller graph for this function:

template<typename T>
scoped_array& scoped_array< T >::operator= ( scoped_array< T > const &   )  [private]
template<typename T>
T& scoped_array< T >::operator[] ( std::ptrdiff_t  i  )  const [inline]

Definition at line 69 of file utility.h.

template<typename T>
void scoped_array< T >::reset ( T *  p = 0  )  [inline]

Definition at line 62 of file utility.h.

template<typename T>
void scoped_array< T >::swap ( scoped_array< T > &  sp  )  [inline]

Definition at line 72 of file utility.h.


Field Documentation

template<typename T>
T* scoped_array< T >::p_ [private]

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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1