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

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
 

Detailed Description

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

Definition at line 126 of file FactoryRegistry.hpp.

Member Function Documentation

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

Instantiates an object with the factory associated with the specified key, passing arg1 to the factory.

Returns
Created instance.

Definition at line 141 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: