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.

Referenced by Dune::Singleton< T >::instance().

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

Set the pointer.

Parameters:
pointer A pointer to the instance.

Referenced by Dune::Singleton< T >::instance().


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

Generated on Sun Nov 15 22:28:21 2009 for dune-common by  doxygen 1.5.6