Factory class definition. 更多...
#include <factory.h>
Public 成员函数 | |
virtual | ~Factory ()=default |
Destructor. 更多... | |
virtual std::unique_ptr< Base > | create ()=0 |
Create a Base class. 更多... | |
静态 Public 成员函数 | |
static std::unique_ptr< Base > | build (const std::string &name) |
Builds an object of type Base identified by name. 更多... | |
Protected 成员函数 | |
Factory (const std::string &name) | |
Constructor. 更多... | |
静态 Protected 成员函数 | |
static std::map< std::string, Factory< Base > * > & | factory_map () |
Map from a name to a Factory<Base> * pointer. 更多... | |
Factory class definition.
|
inlineprotected |
Constructor.
Takes the name to be mapped.
|
virtualdefault |
Destructor.
|
inlinestatic |
Builds an object of type Base identified by name.
参考 libMesh::Factory< Base >::create() , 以及 libMesh::err.
|
pure virtual |
Create a Base class.
Force this to be implemented later.
|
staticprotected |
Map from a name to a Factory<Base> * pointer.