Holds pointers to unique instance of a singleton factory. More...
#include <OpenMS/CONCEPT/SingletonRegistry.h>
Static Public Member Functions | |
| static FactoryBase * | getFactory (const String &name) |
return DefaultParamHandler 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 |
Holds pointers to unique instance of a singleton factory.
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 FactoryBase* getFactory | ( | const String & | name | ) | [inline, static] |
return DefaultParamHandler according to unique identifier name
Referenced by Factory< FactoryProduct >::instance_().
| static SingletonRegistry* instance_ | ( | ) | [inline, static, private] |
singleton access to SingletonRegistry
| static bool isRegistered | ( | String | name | ) | [inline, static] |
Returns if a factory is registered.
Referenced by Factory< FactoryProduct >::instance_().
| static void registerFactory | ( | const String & | name, | |
| FactoryBase * | instance | |||
| ) | [inline, static] |
register new concrete Factory
Referenced by Factory< FactoryProduct >::instance_().
friend class singletonsNeedNoFriends [friend] |
Map inventory_ [private] |
SingletonRegistry* singletonRegistryInstance_ [static, private] |
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:51 using doxygen 1.7.1 |