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