fw4spl
fwCore::util::FactoryRegistry< RETURN_TYPE(), KEY_TYPE, FACTORY_HOLDER > Class Template Reference
+ Inheritance diagram for fwCore::util::FactoryRegistry< RETURN_TYPE(), KEY_TYPE, FACTORY_HOLDER >:
+ Collaboration diagram for fwCore::util::FactoryRegistry< RETURN_TYPE(), KEY_TYPE, FACTORY_HOLDER >:

Public Member Functions

ReturnType create (const KeyType &key) const
 Instantiates an object with the factory associated with the specified key. More...
 
- Public Member Functions inherited from fwCore::util::FactoryRegistryBase< RETURN_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(), KEY_TYPE >
typedef RETURN_TYPE() FactorySignatureType
 
typedef KEY_TYPE KeyType
 
typedef std::function< RETURN_TYPE() > FactoryType
 
typedef std::map< KeyType, FactoryType > RegistryType
 
typedef std::vector< KeyType > KeyVectorType
 
- Protected Attributes inherited from fwCore::util::FactoryRegistryBase< RETURN_TYPE(), KEY_TYPE >
RegistryType m_registry
 
mutable::fwCore::mt::ReadWriteMutex m_mutex
 

Detailed Description

template<typename RETURN_TYPE, typename KEY_TYPE, typename FACTORY_HOLDER>
class fwCore::util::FactoryRegistry< RETURN_TYPE(), KEY_TYPE, FACTORY_HOLDER >

Definition at line 98 of file FactoryRegistry.hpp.

Member Function Documentation

template<typename RETURN_TYPE , typename KEY_TYPE , typename FACTORY_HOLDER >
ReturnType fwCore::util::FactoryRegistry< RETURN_TYPE(), KEY_TYPE, FACTORY_HOLDER >::create ( const KeyType &  key) const
inline

Instantiates an object with the factory associated with the specified key.

Returns
Created instance.

Definition at line 112 of file FactoryRegistry.hpp.

References fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER >::getFactory().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: