37 template<
class T,
class ... Args>
54 CreatorType creator) {
66 registerClassWithOnlyConstructor<C>(
name);
bool registerClass(const std::string &name, CreatorType creator)
Definition: FactoryRegistry.hpp:36
Definition: FactoryRegistry.hpp:23
PointerType createInstance(const std::string &name, Args... args)
Creates a new instance of the class with the given name and arguments.
Definition: FactoryRegistry.hpp:62
static bool registerClassWithOnlyConstructor(const std::string &name)
Definition: Factory.hpp:64
impl::FactoryRegistry< T, Args... >::PointerType PointerType
Definition: Factory.hpp:41
Definition: Factory.hpp:38
static PointerType createInstance(const std::string &name, Args... args)
Creates a new instance of the class with the given name and arguments.
Definition: Factory.hpp:45
std::string name
Definition: EquationParameterFactory.cpp:39
Various utilities for mpi and cuda.
Definition: Factory.hpp:3
static FactoryRegistry & getInstance()
Gets the singleton instance of this class.
Definition: FactoryRegistry.hpp:72
impl::FactoryRegistry< T, Args... >::CreatorType CreatorType
Definition: Factory.hpp:42
static bool registerClass(const std::string &name, CreatorType creator)
Definition: Factory.hpp:53