PLaSK library
Loading...
Searching...
No Matches
plask::MaterialsDB::MaterialConstructor Struct Referenceabstract

Object of this class (inherited from it) construct material instance. More...

#include <plask/material/db.hpp>

Inheritance diagram for plask::MaterialsDB::MaterialConstructor:
[legend]
Collaboration diagram for plask::MaterialsDB::MaterialConstructor:
[legend]

Public Member Functions

 MaterialConstructor (const std::string &materialName)
 MaterialConstructor constructor.
 
virtual shared_ptr< Materialoperator() (const Material::Composition &composition, double doping) const =0
 Create material.
 
virtual bool isAlloy () const =0
 
virtual ~MaterialConstructor ()
 
void ensureCompositionIsEmpty (const Material::Composition &composition) const
 
void ensureNoDoping (double doping) const
 

Public Attributes

std::string materialName
 Full name (with optional dopant name) of material which this constructor can create.
 

Detailed Description

Object of this class (inherited from it) construct material instance.

It produces materials of one type but with various composition and ammount of dopant.

Definition at line 98 of file db.hpp.

Constructor & Destructor Documentation

◆ MaterialConstructor()

plask::MaterialsDB::MaterialConstructor::MaterialConstructor ( const std::string &  materialName)
inline

MaterialConstructor constructor.

Parameters
materialNamefull name (with optional dopant name) of material which this constructor can create

Definition at line 109 of file db.hpp.

◆ ~MaterialConstructor()

virtual plask::MaterialsDB::MaterialConstructor::~MaterialConstructor ( )
inlinevirtual

Definition at line 124 of file db.hpp.

Member Function Documentation

◆ ensureCompositionIsEmpty()

void plask::MaterialsDB::MaterialConstructor::ensureCompositionIsEmpty ( const Material::Composition composition) const
inline

Definition at line 126 of file db.hpp.

◆ ensureNoDoping()

void plask::MaterialsDB::MaterialConstructor::ensureNoDoping ( double  doping) const
inline

Definition at line 130 of file db.hpp.

◆ isAlloy()

◆ operator()()

virtual shared_ptr< Material > plask::MaterialsDB::MaterialConstructor::operator() ( const Material::Composition composition,
double  doping 
) const
pure virtual

Member Data Documentation

◆ materialName

std::string plask::MaterialsDB::MaterialConstructor::materialName

Full name (with optional dopant name) of material which this constructor can create.

Definition at line 103 of file db.hpp.


The documentation for this struct was generated from the following file: