|
|
| Factory (const Factory &)=delete |
|
Factory & | operator= (const Factory &)=delete |
|
| Factory (Factory &&)=default |
|
Factory & | operator= (Factory &&)=default |
|
virtual std::unique_ptr< T > | create (K key, Args... args) const =0 |
|
virtual std::shared_ptr< T > | createShared (K key, Args... args) const |
|
virtual bool | hasKey (K key) const =0 |
template<typename T, typename K = std::string_view, typename... Args>
class inviwo::Factory< T, K, Args >
An abstract factory interface.
- Template Parameters
-
| T | Models the object created, T will be constructed using Args... |
| Args | A variadic list of arguments passed to T on construction |