libMesh::AutoPtrRef< Tp1 > Struct Template Reference

#include <auto_ptr.h>

Public Member Functions

 AutoPtrRef (Tp1 *p)
 

Public Attributes

Tp1 * _ptr
 

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 58 of file auto_ptr.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 69 of file auto_ptr.h.

70  : _ptr(p) {}

Member Data Documentation

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

The actual pointer.

Definition at line 63 of file auto_ptr.h.

Referenced by libMesh::AutoPtr< libMesh::FETransformationBase< OutputType > >::operator=().


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

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:08 UTC

Hosted By:
SourceForge.net Logo