![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <inviwo/core/util/factory.h>
Inheritance diagram for inviwo::FactoryRegister< FactoryObject, Key, LookUpKey >:Public Member Functions | |
| FactoryObject * | getFactoryObject (LookUpKey key) const |
| std::vector< Key > | getKeys () const |
| auto | getKeyView () const |
| auto | getValueView () const |
| bool | hasKey (LookUpKey key) const |
| virtual bool | registerObject (FactoryObject *obj) |
| virtual bool | unRegisterObject (FactoryObject *obj) |
Public Member Functions inherited from inviwo::Observable< T > | |
| void | addObserver (T *observer) |
| bool | isObservedBy (T *observer) const |
| 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 | removeObserver (T *observer) |
| virtual void | startBlockingNotifications () override final |
| virtual void | stopBlockingNotifications () override final |
Protected Attributes | |
| std::map< Key, FactoryObject *, std::less<> > | map_ |
Additional Inherited Members | |
Protected Member Functions inherited from inviwo::FactoryObservable< FactoryObject > | |
| void | notifyObserversOnRegister (FactoryObject *p) |
| void | notifyObserversOnUnRegister (FactoryObject *p) |
Protected Member Functions inherited from inviwo::Observable< T > | |
| template<typename C > | |
| void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
| void | addObservationHelper (Observer *observer) |
| void | removeObservationHelper (Observer *observer) |
A map of Keys and associated FactoryObjects.
| FactoryObject | A factory type for some object. A LookUpKey getClassIdentifier() function is required for registration in the map. |
| Key | the key type used in the map |
| LookUpKey | A type used to lookup FactoryObjects in the map |
|
virtual |
The factory will not assume ownership over obj, although is assumes that obj will be valid for the lifetime of the factory
Reimplemented in inviwo::ProcessorFactory.