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