|
Grid 0.7.0
|
#include <Factory.h>
Public Types | |
| typedef std::function< std::unique_ptr< T >(const CreatorInput &) > | Func |
Public Member Functions | |
| Factory (void)=default | |
| virtual | ~Factory (void)=default |
| void | registerBuilder (const std::string type, const Func &f) |
| std::vector< std::string > | getBuilderList (void) const |
| std::unique_ptr< T > | create (const std::string type, const CreatorInput &input) const |
Private Member Functions | |
| virtual std::string | obj_type () const =0 |
Private Attributes | |
| std::map< std::string, Func > | builder_ |
| typedef std::function< std::unique_ptr<T>(const CreatorInput&) > Grid::Factory< T, CreatorInput >::Func |
|
default |
|
virtualdefault |
| void Factory::registerBuilder | ( | const std::string | type, |
| const Func & | f ) |
| std::vector< std::string > Factory::getBuilderList | ( | void | ) | const |
| std::unique_ptr< T > Factory::create | ( | const std::string | type, |
| const CreatorInput & | input ) const |
Definition at line 86 of file Factory.h.
References builder_, GridLogDebug, GridLogError, and obj_type().
|
privatepure virtual |
Referenced by create().
|
private |
Definition at line 56 of file Factory.h.
Referenced by create(), getBuilderList(), and registerBuilder().