abstract factory for stress criteria.
More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/BehaviourBrick/StressCriterionFactory.hxx>
|
|
using | Generator = std::function<std::shared_ptr<StressCriterion>()> |
| | a simple alias
|
|
|
| StressCriterionFactory (StressCriterionFactory &&)=delete |
|
| StressCriterionFactory (const StressCriterionFactory &)=delete |
|
StressCriterionFactory & | operator= (StressCriterionFactory &&)=delete |
|
StressCriterionFactory & | operator= (const StressCriterionFactory &)=delete |
|
std::vector< std::string > | getRegistredStressCriteria () const |
| | return the list of available stress criteria
|
| void | addGenerator (const std::string &, const Generator &) |
| | add a new generator
|
| std::shared_ptr< StressCriterion > | generate (const std::string &) const |
| | generate a new inelastic potential
|
abstract factory for stress criteria.
◆ addGenerator()
| void mfront::bbrick::StressCriterionFactory::addGenerator |
( |
const std::string & | , |
|
|
const Generator & | ) |
add a new generator
- Parameters
-
| [in] | n | name of the generator |
| [in] | g | generator |
◆ generate()
| std::shared_ptr< StressCriterion > mfront::bbrick::StressCriterionFactory::generate |
( |
const std::string & | | ) |
const |
|
nodiscard |
generate a new inelastic potential
- Parameters
-
| [in] | n | name of the inelastic potential |
◆ getFactory()
| StressCriterionFactory & mfront::bbrick::StressCriterionFactory::getFactory |
( |
| ) |
|
|
staticnodiscard |
- Returns
- the uniq instance of the class
The documentation for this struct was generated from the following file: