#include <singleton.hh>
Inheritance diagram for nnl::Singleton< T >:

Public Member Functions | |
| Singleton () | |
| Constructor. | |
| virtual | ~Singleton () |
| Destructor. | |
Static Public Member Functions | |
| static T * | InstanceP (void) |
| Get instance. | |
| static T & | Instance (void) |
| Get instance. | |
| static T & | Instance (const char *file, unsigned line) |
| Get instance. | |
Static Private Attributes | |
| static T * | mpInstance = 0 |
| instance ptr | |
| static T& nnl::Singleton< T >::Instance | ( | const char * | file, | |
| unsigned | line | |||
| ) | [inline, static] |
Get instance.
Does not create one. In case instance is null, the exception text contains file and line.
| file | file name where this op is called | |
| line | line number where this op is called |
| std::runtime_error | in case instance is null |
| static T& nnl::Singleton< T >::Instance | ( | void | ) | [inline, static] |
Get instance.
Does not create one.
| std::runtime_error | in case instance is null |
| static T* nnl::Singleton< T >::InstanceP | ( | void | ) | [inline, static] |
Get instance.
Does not create one.
1.4.7