Inviwo
0.9.10.1
Inviwo documentation
|
#include <factory.h>
Public Types | |
using | Key = typename std::remove_cv< typename std::remove_reference< K >::type >::type |
using | Map = std::unordered_map< Key, T * > |
Public Member Functions | |
virtual bool | registerObject (T *obj) |
virtual bool | unRegisterObject (T *obj) |
virtual std::unique_ptr< T > | create (K key) const override |
virtual bool | hasKey (K key) const override |
virtual std::vector< Key > | getKeys () const |
Public Member Functions inherited from inviwo::Factory< T, K > | |
virtual std::unique_ptr< T > | create (K key, Args... args) const=0 |
Public Member Functions inherited from inviwo::FactoryBase | |
FactoryBase (const FactoryBase &)=delete | |
FactoryBase & | operator= (const FactoryBase &)=delete |
FactoryBase (FactoryBase &&)=default | |
FactoryBase & | operator= (FactoryBase &&)=default |
Protected Attributes | |
Map | map_ |
T Models the object created T needs to have a clone() function.