A simple smart pointer responsible for creation and deletion of the instance. More...
#include <dune/common/singleton.hh>
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. |
A simple smart pointer responsible for creation and deletion of the instance.
Dune::Singleton< T >::InstancePointer::InstancePointer | ( | ) | [inline] |
Construct a null pointer.
Dune::Singleton< T >::InstancePointer::~InstancePointer | ( | ) | [inline] |
Delete the instance we point to.
T* Dune::Singleton< T >::InstancePointer::get | ( | ) | [inline] |
Get a pointer to the instance.
Referenced by Dune::Singleton< T >::instance().
void Dune::Singleton< T >::InstancePointer::set | ( | T * | pointer | ) | [inline] |
Set the pointer.
pointer | A pointer to the instance. |
Referenced by Dune::Singleton< T >::instance().