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

#include <inviwo/core/util/factory.h>

Inheritance diagram for inviwo::Factory< T, K, Args >:

Public Member Functions

virtual std::unique_ptr< T > create (K key, Args... args) const =0
virtual std::shared_ptr< T > createShared (K key, Args... args) const
 Factory (const Factory &)=delete
 Factory (Factory &&)=default
virtual bool hasKey (K key) const =0
Factory & operator= (const Factory &)=delete
Factory & operator= (Factory &&)=default

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:
  • include/inviwo/core/util/factory.h