|
Opm::Factory< Base > Class Template Reference
Detailed Descriptiontemplate<class Base>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef std::shared_ptr<Base> Opm::Factory< Base >::ProductPtr |
The type of pointer returned by createObject().
|
inlinestatic |
Add a creator to the Factory. After the call, the user may obtain new objects of the Derived type by calling createObject() with the given type string as an argument.
| Derived | the class we want to add a creator for, must inherit the class template parameter Base. |
| type | the type string with which we want the Factory to associate the class Derived. |
|
inlinestatic |
Clones an new object of the class associated with the given type string, and returns a pointer to it.
| type | the type string of the class that the user wants to have constructed. |
| original | (smart) pointer to object to be cloned. |
|
inlinestatic |
Creates a new object of the class associated with the given type string, and returns a pointer to it.
| type | the type string of the class that the user wants to have constructed. |