Inviwo  0.9.10.1
Inviwo documentation
inviwo::CloningFactory< T, K > Class Template Reference

#include <factory.h>

+ Inheritance diagram for inviwo::CloningFactory< T, K >:

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
 
FactoryBaseoperator= (const FactoryBase &)=delete
 
 FactoryBase (FactoryBase &&)=default
 
FactoryBaseoperator= (FactoryBase &&)=default
 

Protected Attributes

Map map_
 

Detailed Description

template<typename T, typename K = const std::string&>
class inviwo::CloningFactory< T, K >

T Models the object created T needs to have a clone() function.


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