PLaSK library

Loading...
Searching...
No Matches
plask::MaterialsDB::DelegateMaterialConstructor< MaterialType, requireComposition, requireDopant > Struct Template Reference

Specialization of this implements MaterialConstructor. More...

## Detailed Description

template<typename MaterialType, bool requireComposition = Material::is_with_composition<MaterialType>::value, bool requireDopant = Material::is_with_dopant<MaterialType>::value>
struct plask::MaterialsDB::DelegateMaterialConstructor< MaterialType, requireComposition, requireDopant >

Specialization of this implements MaterialConstructor.

operator() delegates call to Material constructor, optionally ignoring (depending from requireComposition and requireDopant) some arguments.

Template Parameters

  MaterialType | type of material
  requireComposition | if `true` ensure if comosition is not empty, material composition will be completed and passed to constructor, if `false` composition will be ignored
  requireDopant | if `true` dopant information will be passed to constructor, if `false` dopant information will be ignored

Definition at line 377 of file db.hpp.

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

- plask/material/db.hpp