Objects of this class manage a family of named implementations of a particular interface.
More...
#include <Factory.h>
|
class | ImplMapProxy |
| This object presents the registered implementations in a form very similar to a STL container. More...
|
|
template<typename Key, typename Interface>
class rsc::patterns::Factory< Key, Interface >
Objects of this class manage a family of named implementations of a particular interface.
- See Also
- FactoryBase
- Author
- Jan Moringen jmori.nosp@m.nge@.nosp@m.techf.nosp@m.ak.u.nosp@m.ni-bi.nosp@m.elef.nosp@m.eld.d.nosp@m.e
Definition at line 129 of file Factory.h.
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key , typename Interface >
template<typename Key , typename Interface >
template<typename Key , typename Interface >
template<typename Key , typename Interface >
Create and return an instance of the implementation designated by key.
properties_ is passed to the create function.
- Parameters
-
key | The name of a registered implementation. |
properties_ | A set of properties. The interpretation is up the selected create function. |
- Returns
- A pointer to a newly created instance of the implementation specified by key.
- Exceptions
-
NoSuchImpl | If key does not name a registered implementation. |
ConstructError | If the selected create function produced an exception during execution. |
Definition at line 350 of file Factory.h.
References rsc::runtime::typeName(), and rsc::runtime::typeString().
template<typename Key , typename Interface >
template<typename Key , typename Interface >
Return a container-like object holding all registered implementations.
Definition at line 297 of file Factory.h.
template<typename Key , typename Interface >
Return a container-like object holding all registered implementations.
Definition at line 303 of file Factory.h.
template<typename Key , typename Interface >
template<typename Key , typename Interface >
template<typename Key , typename Interface >
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
template<typename Key, typename Interface>
The documentation for this class was generated from the following file: