#include <Singleton.hpp>
Inheritance diagram for corelinux::Singleton
Public Methods | |
Singleton ( void ) throw ( Assertion ) | |
Default constructor sets theSingleton and theType after insuring that they are not already instantiated. More... | |
Singleton ( TypeImpl *aTypePtr ) throw ( Assertion ) | |
Initializing constructor. | |
virtual | ~Singleton ( void ) |
Virtual destructor. | |
bool | operator== ( const Singleton & aSingleton ) const |
Equality operator tests that theSingleton instances are equal. More... | |
Static Public Methods | |
TypeImpl* | instance ( void ) |
Returns the instance of the TypeImpl. More... |
This is easier said than done outside of the solution domain. While we can declare a protocol by which the use of this type will prevent multiple applications, we can't insure that the implementor won't violate said protocol.
|
Default constructor sets theSingleton and theType after insuring that they are not already instantiated.
|
|
Returns the instance of the TypeImpl.
|
|
Equality operator tests that theSingleton instances are equal.
|