Phoxonics
1.0
Object Oriented FDTD Software
|
Public Member Functions | |
virtual | ~MaterialFactory () |
void | register_factory_function (std::string class_name, std::function< MaterialBase *(void)> class_factory_function) |
std::shared_ptr< MaterialBase > | create (std::string class_name) |
Static Public Member Functions | |
static MaterialFactory * | instance () |
Additional Inherited Members | |
Protected Types inherited from phoxonics::core::FactoryBase | |
typedef phoxonics::common::Formatter | fmt_ |
Protected Member Functions inherited from phoxonics::core::FactoryBase | |
FactoryBase () | |
virtual | ~FactoryBase () |
Protected Attributes inherited from phoxonics::core::FactoryBase | |
phoxonics::common::Logger | log_ |
|
virtual |
References phoxonics::core::FactoryBase::log_, and phoxonics::common::Logger::log_trac().
std::shared_ptr< MaterialBase > phoxonics::core::MaterialFactory::create | ( | std::string | class_name | ) |
|
static |
void phoxonics::core::MaterialFactory::register_factory_function | ( | std::string | class_name, |
std::function< MaterialBase *(void)> | class_factory_function | ||
) |
References phoxonics::core::FactoryBase::log_, and phoxonics::common::Logger::log_trac().
Referenced by phoxonics::core::MaterialFactoryReg< T >::MaterialFactoryReg().