| ★ wanayoo — archive 1999 http://corelinux.sourceforge.net/classref/Singleton.html | Nouvelle recherche | Portail wanayoo |
Ensure a class only has one instance, and provide a global point of access to it.
Ensure a class only has one instance, and provide a global point of access to it. 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.
Singleton( TypeImpl *aTypePtr ) throw( Assertion )
virtual ~Singleton( void )
bool operator==( const Singleton & aSingleton ) const
static TypeImpl* instance( void )