PLaSK library
|
Base class for factories of alloy materials which construct their versions with mixed compositions and/or doping amounts. More...
#include <plask/material/db.hpp>
Public Member Functions | |
MixedCompositionFactory (shared_ptr< const MaterialConstructor > constructor) | |
Construct MixedCompositionFactory for given material constructor and two compositions for this constructor. | |
virtual | ~MixedCompositionFactory () |
virtual shared_ptr< Material > | operator() (double m1_weight) const =0 |
Construct material. | |
virtual shared_ptr< Material > | singleMaterial () const =0 |
Get material only if this factory represents solid material (if operator(double m1_weight) is independent from m1_weight). | |
Protected Attributes | |
shared_ptr< const MaterialConstructor > | constructor |
Base class for factories of alloy materials which construct their versions with mixed compositions and/or doping amounts.
|
inline |
Construct MixedCompositionFactory for given material constructor and two compositions for this constructor.
constructor | material constructor |
|
inlinevirtual |
|
pure virtual |
Construct material.
m1_weight | weight of first composition or doping amount |
Implemented in plask::MaterialsDB::MixedCompositionOnlyFactory, plask::MaterialsDB::MixedCompositionAndDopantFactory, and plask::MaterialsDB::MixedDopantFactory.
|
pure virtual |
Get material only if this factory represents solid material (if operator(double m1_weight) is independent from m1_weight).
Implemented in plask::MaterialsDB::MixedCompositionOnlyFactory, plask::MaterialsDB::MixedCompositionAndDopantFactory, plask::MaterialsDB::MixedDopantFactory, and plask::MaterialsDB::DummyMixedCompositionFactory.
|
protected |