Dune::Singleton< T >::InstancePointer Class Reference
#include <singleton.hh>
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: