tfel
Loading...
Searching...
No Matches
mfront::bbrick::InelasticFlowFactory Struct Reference

abstract factory for inelastic Flows. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/BehaviourBrick/InelasticFlowFactory.hxx>

Public Types

using Generator = std::function<std::shared_ptr<InelasticFlow>()>
 a simple alias

Public Member Functions

 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

Static Public Member Functions

static InelasticFlowFactory & getFactory ()

Detailed Description

abstract factory for inelastic Flows.

Member Function Documentation

◆ addGenerator()

void mfront::bbrick::InelasticFlowFactory::addGenerator ( const std::string & ,
const Generator &  )

add a new generator

Parameters
[in]nname of the generator
[in]ggenerator

◆ generate()

std::shared_ptr< InelasticFlow > mfront::bbrick::InelasticFlowFactory::generate ( const std::string & ) const
nodiscard

generate a new inelastic flow

Parameters
[in]nname 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: