Inviwo 0.9.12-pre
Inviwo documentation
|
#include <factory.h>
Public Member Functions | |
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 |
An abstract factory interface.
T | Models the object created, T will be constructed using Args ... |
Args | A variadic list of arguments passed to T on construction |