#include <OpenMS/CONCEPT/Factory.h>
Static Public Member Functions | |
static FactoryProduct * | create (const String &name) |
return FactoryProduct according to unique identifier name | |
static void | registerProduct (const String &name, const FunctionType creator) |
register new concrete FactoryProduct | |
static bool | isRegistered (const String &name) |
Returns if a factory product is registered. | |
static std::vector< String > | registeredProducts () |
Returns a list of registered products. | |
Private Types | |
typedef FactoryProduct *(* | FunctionType )() |
Function signature of creator function. | |
typedef std::map< String, FunctionType > | Map |
typedef Map::const_iterator | MapIterator |
typedef Factory< FactoryProduct > | FactoryType |
Private Member Functions | |
virtual | ~Factory () |
Destructor. | |
Factory () | |
Constructor. | |
Static Private Member Functions | |
static Factory * | instance_ () |
singleton access to Factory | |
Private Attributes | |
Map | inventory_ |
Static Private Attributes | |
static Factory * | instance_ptr_ = 0 |
Friends | |
class | singletonsNeedNoFriends |
typedef FactoryProduct*(* FunctionType)() [private] |
Function signature of creator function.
typedef std::map<String, FunctionType> Map [private] |
typedef Map::const_iterator MapIterator [private] |
typedef Factory<FactoryProduct> FactoryType [private] |
virtual ~Factory | ( | ) | [inline, private, virtual] |
Destructor.
Factory | ( | ) | [inline, private] |
Constructor.
static FactoryProduct* create | ( | const String & | name | ) | [inline, static] |
return FactoryProduct according to unique identifier name
static void registerProduct | ( | const String & | name, | |
const FunctionType | creator | |||
) | [inline, static] |
register new concrete FactoryProduct
name | unique name for concrete FactoryProduct | |
creator | default constructor for concrete FactoryProduct |
static bool isRegistered | ( | const String & | name | ) | [inline, static] |
Returns if a factory product is registered.
static std::vector<String> registeredProducts | ( | ) | [inline, static] |
Returns a list of registered products.
friend class singletonsNeedNoFriends [friend] |
Map inventory_ [private] |
Factory< FactoryProduct > * instance_ptr_ = 0 [inline, static, private] |
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |