libMesh
Public Member Functions | Public Attributes | List of all members
libMesh::AutoPtrRef< Tp1 > Struct Template Reference

A wrapper class to provide AutoPtr with reference semantics. More...

#include <auto_ptr.h>

Public Member Functions

 AutoPtrRef (Tp1 *p)
 Constructor. More...
 

Public Attributes

Tp1 * _ptr
 The actual pointer. More...
 

Detailed Description

template<typename Tp1>
struct libMesh::AutoPtrRef< Tp1 >

A wrapper class to provide AutoPtr with reference semantics.

For example, an AutoPtr can be assigned (or constructed from) the result of a function which returns an AutoPtr by value.

All the AutoPtrRef stuff should happen behind the scenes.

Definition at line 126 of file auto_ptr.h.

Constructor & Destructor Documentation

template<typename Tp1>
libMesh::AutoPtrRef< Tp1 >::AutoPtrRef ( Tp1 *  p)
explicit

Constructor.

Definition at line 137 of file auto_ptr.h.

138  : _ptr(p) {}
Tp1 * _ptr
The actual pointer.
Definition: auto_ptr.h:131

Member Data Documentation

template<typename Tp1>
Tp1* libMesh::AutoPtrRef< Tp1 >::_ptr

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