Dune::Singleton< T >::InstancePointer Class Reference

#include <singleton.hh>

List of all members.


Detailed Description

template<class T>
class Dune::Singleton< T >::InstancePointer

A simple smart pointer responsible for creation and deletion of the instance.


Public Member Functions

 InstancePointer ()
 Construct a null pointer.
 ~InstancePointer ()
 Delete the instance we point to.
T * get ()
 Get a pointer to the instance.
void set (T *pointer)
 Set the pointer.

Member Function Documentation

template<class T>
T* Dune::Singleton< T >::InstancePointer::get (  )  [inline]

Get a pointer to the instance.

Returns:
The instance we store.

template<class T>
void Dune::Singleton< T >::InstancePointer::set ( T *  pointer  )  [inline]

Set the pointer.

Parameters:
pointer A pointer to the instance.


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

Generated on 9 Apr 2008 with Doxygen (ver 1.5.2) [logfile].