Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Factory< T, K, Args > Class Template Referenceabstract

#include <factory.h>

Public Member Functions

 Factory (const Factory &)=delete
 
Factoryoperator= (const Factory &)=delete
 
 Factory (Factory &&)=default
 
Factoryoperator= (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
 

Detailed Description

template<typename T, typename K = std::string_view, typename... Args>
class inviwo::Factory< T, K, Args >

An abstract factory interface.

Template Parameters
TModels the object created, T will be constructed using Args...
ArgsA variadic list of arguments passed to T on construction

The documentation for this class was generated from the following file: