|
PLaSK library
|
Material constructor that holds other constructor or complete material object based on the provided name. More...
#include <plask/material/db.hpp>
Public Member Functions | |
| ProxyMaterialConstructor () | |
| ProxyMaterialConstructor (const std::string &name, const MaterialsDB &db=MaterialsDB::getDefault()) | |
| ProxyMaterialConstructor (const shared_ptr< Material > &material) | |
| shared_ptr< Material > | operator() (const Material::Composition &comp, double dop) const override |
| Create material. | |
| bool | isAlloy () const override |
Public Member Functions inherited from plask::MaterialsDB::MaterialConstructor | |
| MaterialConstructor (const std::string &materialName) | |
| MaterialConstructor constructor. | |
| virtual | ~MaterialConstructor () |
| void | ensureCompositionIsEmpty (const Material::Composition &composition) const |
| void | ensureNoDoping (double doping) const |
Additional Inherited Members | |
Public Attributes inherited from plask::MaterialsDB::MaterialConstructor | |
| std::string | materialName |
| Full name (with optional dopant name) of material which this constructor can create. | |
Material constructor that holds other constructor or complete material object based on the provided name.
| plask::MaterialsDB::ProxyMaterialConstructor::ProxyMaterialConstructor | ( | ) |
| plask::MaterialsDB::ProxyMaterialConstructor::ProxyMaterialConstructor | ( | const std::string & | name, |
| const MaterialsDB & | db = MaterialsDB::getDefault() |
||
| ) |
|
overridevirtual |
true only if this constructor creates simple material (does not use composition) Implements plask::MaterialsDB::MaterialConstructor.
|
overridevirtual |
Create material.
| composition | parsed amounts of objects, can be not completed (see Material::completeComposition), empty composition in case of simple materials |
| doping | amount of dopant |
Implements plask::MaterialsDB::MaterialConstructor.