A registry entry that builds one implementation of Product.
More...
#include <named_factory.hpp>
Public Types | |
| using | Builder = std::function< std::unique_ptr< Product >()> |
Public Member Functions | |
| NamedFactory (std::vector< std::string > names, Builder builder) | |
An entry answering to names (the first is canonical) that builds with builder. | |
| std::unique_ptr< Product > | create () const |
| A newly built implementation. | |
| const std::vector< std::string > & | names () const |
| The names this entry answers to; the first is canonical. | |
A registry entry that builds one implementation of Product.
Definition at line 21 of file named_factory.hpp.
| using q3::NamedFactory< Product >::Builder = std::function<std::unique_ptr<Product>()> |
Definition at line 23 of file named_factory.hpp.
|
inline |
An entry answering to names (the first is canonical) that builds with builder.
Definition at line 26 of file named_factory.hpp.
|
inline |
A newly built implementation.
Definition at line 35 of file named_factory.hpp.
|
inline |
The names this entry answers to; the first is canonical.
Definition at line 30 of file named_factory.hpp.