fw4spl
|
Public Member Functions | |
ReturnType | create (const KeyType &key, Arg1Type &arg1) const |
Instantiates an object with the factory associated with the specified key, passing arg1 to the factory. More... | |
Public Member Functions inherited from fwCore::util::FactoryRegistryBase< RETURN_TYPE(ARG1_TYPE), KEY_TYPE > | |
void | addFactory (const KeyType &name, FactoryType factory) |
Add a factory to the registry. | |
virtual FactoryType | getFactory (const KeyType &key) const |
returns the factory associated with the key. | |
virtual KeyVectorType | getFactoryKeys () const |
returns the registered factory keys. | |
Additional Inherited Members | |
Public Types inherited from fwCore::util::FactoryRegistryBase< RETURN_TYPE(ARG1_TYPE), KEY_TYPE > | |
typedef RETURN_TYPE(ARG1_TYPE) | FactorySignatureType |
typedef KEY_TYPE | KeyType |
typedef std::function< RETURN_TYPE(ARG1_TYPE) > | FactoryType |
typedef std::map< KeyType, FactoryType > | RegistryType |
typedef std::vector< KeyType > | KeyVectorType |
Protected Attributes inherited from fwCore::util::FactoryRegistryBase< RETURN_TYPE(ARG1_TYPE), KEY_TYPE > | |
RegistryType | m_registry |
mutable::fwCore::mt::ReadWriteMutex | m_mutex |
Definition at line 126 of file FactoryRegistry.hpp.
|
inline |
Instantiates an object with the factory associated with the specified key, passing arg1 to the factory.
Definition at line 141 of file FactoryRegistry.hpp.
References fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER >::getFactory().