Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::CloningFactory< T > Class Template Reference

#include <factory.h>

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

Public Member Functions

virtual std::unique_ptr< T > create (std::string_view key) const override
 
virtual bool hasKey (std::string_view key) const override
 
- Public Member Functions inherited from inviwo::Factory< T, std::string_view >
 Factory (const Factory &)=delete
 
 Factory (Factory &&)=default
 
Factoryoperator= (const Factory &)=delete
 
Factoryoperator= (Factory &&)=default
 
virtual std::unique_ptr< T > create (std::string_view key, Args... args) const=0
 
virtual std::shared_ptr< T > createShared (std::string_view key, Args... args) const
 
- Public Member Functions inherited from inviwo::FactoryRegister< T, std::string, std::string_view >
virtual bool registerObject (T *obj)
 
virtual bool unRegisterObject (T *obj)
 
bool hasKey (std::string_view key) const
 
std::vector< std::string > getKeys () const
 
auto getKeyView () const
 
T * getFactoryObject (std::string_view key) const
 
- Public Member Functions inherited from inviwo::Observable< FactoryObserver< T > >
 Observable (const Observable< T > &other)
 
 Observable (Observable< T > &&other) noexcept
 
Observable< T > & operator= (const Observable< T > &other)
 
Observable< T > & operator= (Observable< T > &&other) noexcept
 
void addObserver (T *observer)
 
void removeObserver (T *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface

Additional Inherited Members

- Protected Member Functions inherited from inviwo::FactoryObservable< T >
void notifyObserversOnRegister (T *p)
 
void notifyObserversOnUnRegister (T *p)
 
- Protected Member Functions inherited from inviwo::Observable< FactoryObserver< T > >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 
- Protected Attributes inherited from inviwo::FactoryRegister< T, std::string, std::string_view >
std::map< std::string, T *, std::less<> > map_
 

Detailed Description

template<typename T>
class inviwo::CloningFactory< T >

A factory for cloning object The type T needs to have a clone() and a `getClassIdentifier()ยด function.

Template Parameters
TModels the object created.

Member Function Documentation

◆ hasKey()

template<typename T >
virtual bool inviwo::CloningFactory< T >::hasKey ( std::string_view key) const
inlineoverridevirtual

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