#include <OpenMS/CONCEPT/SingletonRegistry.h>
Static Public Member Functions | |
static FactoryBase * | getFactory (const String &name) |
return FactoryProduct according to unique identifier name | |
static void | registerFactory (const String &name, FactoryBase *instance) |
register new concrete Factory | |
static bool | isRegistered (String name) |
Returns if a factory is registered. | |
Private Types | |
typedef std::map< String, FactoryBase * > | Map |
Function signature of creator function. | |
typedef Map::const_iterator | MapIterator |
Private Member Functions | |
virtual | ~SingletonRegistry () |
destructor | |
SingletonRegistry () | |
C'Tor. | |
Static Private Member Functions | |
static SingletonRegistry * | instance_ () |
singleton access to SingletonRegistry | |
Private Attributes | |
Map | inventory_ |
Static Private Attributes | |
static SingletonRegistry * | singletonRegistryInstance_ |
Friends | |
class | singletonsNeedNoFriends |
typedef std::map<String, FactoryBase*> Map [private] |
Function signature of creator function.
typedef Map::const_iterator MapIterator [private] |
virtual ~SingletonRegistry | ( | ) | [inline, private, virtual] |
destructor
SingletonRegistry | ( | ) | [inline, private] |
C'Tor.
static SingletonRegistry* instance_ | ( | ) | [inline, static, private] |
singleton access to SingletonRegistry
static FactoryBase* getFactory | ( | const String & | name | ) | [inline, static] |
return FactoryProduct according to unique identifier name
static void registerFactory | ( | const String & | name, | |
FactoryBase * | instance | |||
) | [inline, static] |
static bool isRegistered | ( | String | name | ) | [inline, static] |
Returns if a factory is registered.
friend class singletonsNeedNoFriends [friend] |
Map inventory_ [private] |
SingletonRegistry* singletonRegistryInstance_ [static, private] |
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |