Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
phoxonics::core::MaterialFactory Class Reference
Inheritance diagram for phoxonics::core::MaterialFactory:
Inheritance graph
[legend]
Collaboration diagram for phoxonics::core::MaterialFactory:
Collaboration graph
[legend]

Public Member Functions

virtual ~MaterialFactory ()
 
void register_factory_function (std::string class_name, std::function< MaterialBase *(void)> class_factory_function)
 
std::shared_ptr< MaterialBasecreate (std::string class_name)
 

Static Public Member Functions

static MaterialFactoryinstance ()
 

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_
 

Constructor & Destructor Documentation

phoxonics::core::MaterialFactory::~MaterialFactory ( )
virtual

Member Function Documentation

std::shared_ptr< MaterialBase > phoxonics::core::MaterialFactory::create ( std::string  class_name)
MaterialFactory * phoxonics::core::MaterialFactory::instance ( )
static
void phoxonics::core::MaterialFactory::register_factory_function ( std::string  class_name,
std::function< MaterialBase *(void)>  class_factory_function 
)