libMesh
|
Factory class definition. More...
#include <factory.h>
Public Member Functions | |
virtual | ~Factory ()=default |
Destructor. More... | |
virtual std::unique_ptr< Base > | create ()=0 |
Create a Base class. More... | |
Static Public Member Functions | |
static std::unique_ptr< Base > | build (const std::string &name) |
Builds an object of type Base identified by name. More... | |
Protected Member Functions | |
Factory (const std::string &name) | |
Constructor. More... | |
template<> | |
std::map< std::string, Factory< FunctionBase< Number > > *> & | factory_map () |
template<> | |
std::map< std::string, Factory< FunctionBase< Number > > *> & | factory_map () |
template<> | |
std::map< std::string, Factory< Partitioner > *> & | factory_map () |
Static Protected Member Functions | |
static std::map< std::string, Factory< Base > * > & | factory_map () |
Map from a name to a Factory<Base> * pointer. More... | |
Factory class definition.
|
inlineprotected |
Constructor.
Takes the name to be mapped.
Definition at line 116 of file factory.h.
References libMesh::libmesh_assert(), and libMesh::Quality::name().
|
virtualdefault |
Destructor.
|
inlinestatic |
Builds an object of type Base identified by name.
Definition at line 129 of file factory.h.
References libMesh::Factory< Base >::create(), libMesh::err, and libMesh::Quality::name().
Referenced by main().
|
pure virtual |
Create a Base class.
Force this to be implemented later.
Implemented in libMesh::FactoryImp< Derived, Base >.
Referenced by libMesh::Factory< Base >::build().
|
protected |
Definition at line 38 of file partitioner_factory.C.
|
protected |
Definition at line 64 of file factoryfunction.C.
|
protected |
Definition at line 64 of file factoryfunction.C.
|
staticprotected |
Map from a name to a Factory<Base> * pointer.