![]() |
Rosetta
2021.16
|
Factory base class holds a map between strings and owning pointers of the creator classes. More...
#include <WidgetFactory.hh>
Public Types | |
| typedef utility::pointer::shared_ptr < Creator > | CreatorOP |
| typedef std::map< std::string, CreatorOP > | CreatorMap |
Public Member Functions | |
| WidgetFactory ()=default | |
| virtual | ~WidgetFactory () |
| void | factory_register (CreatorOP creator) |
| virtual std::string | factory_name () const =0 |
Protected Member Functions | |
| CreatorMap const & | creators () const |
Private Attributes | |
| CreatorMap | creators_ |
Factory base class holds a map between strings and owning pointers of the creator classes.
Factory base class holds a map between strings and owning pointers of the creator classes. This should only be used as a base class for a WidgetFactory which expects to map between strings and Creators. WidgetRegistrators may be used reguardless of how the Factory method maps to its Creators.
| typedef std::map< std::string, CreatorOP > utility::factory::WidgetFactory< Creator >::CreatorMap |
| typedef utility::pointer::shared_ptr< Creator > utility::factory::WidgetFactory< Creator >::CreatorOP |
|
default |
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
|
inline |
|
private |
1.8.7