8 #ifndef CELLSFACTORY_HPP_
9 #define CELLSFACTORY_HPP_
12 #include "../config/SimulationConfig.hpp"
13 #include "../common/FactoryBase.hpp"
14 #include "../../../common/common.hpp"
34 std::function<
CellsBase*(
void)> class_factory_function);
37 std::shared_ptr<CellsBase>
create(std::string class_name,
38 std::shared_ptr<phoxonics::core::SimulationConfig> sim_config);
46 std::map<std::string, std::function<CellsBase*(void)>> factory_function_registry_;
std::shared_ptr< CellsBase > create(std::string class_name, std::shared_ptr< phoxonics::core::SimulationConfig > sim_config)
Definition: CellsFactory.cpp:30
static CellsFactory * instance()
Definition: CellsFactory.cpp:17
Definition: CellsBase.hpp:20
void register_factory_function(std::string class_name, std::function< CellsBase *(void)> class_factory_function)
Definition: CellsFactory.cpp:22
Definition: CommonBase.hpp:14
Definition: FactoryBase.hpp:16
virtual ~CellsFactory()
Definition: CellsFactory.cpp:13
Definition: CellsFactory.hpp:25