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

abstract factory for inelastic Flows. More...

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

Public Types

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

Public Member Functions

 PorosityNucleationModelFactory (PorosityNucleationModelFactory &&)=delete
 PorosityNucleationModelFactory (const PorosityNucleationModelFactory &)=delete
PorosityNucleationModelFactory & operator= (PorosityNucleationModelFactory &&)=delete
PorosityNucleationModelFactory & operator= (const PorosityNucleationModelFactory &)=delete
void addGenerator (const std::string &, const Generator &)
 add a new generator
std::vector< std::string > getRegistredPorosityNucleationModels () const
std::shared_ptr< PorosityNucleationModel > generate (const std::string &) const
 generate a new inelastic flow

Static Public Member Functions

static PorosityNucleationModelFactory & getFactory ()

Detailed Description

abstract factory for inelastic Flows.

Member Function Documentation

◆ addGenerator()

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

add a new generator

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

◆ generate()

std::shared_ptr< PorosityNucleationModel > mfront::bbrick::PorosityNucleationModelFactory::generate ( const std::string & ) const
nodiscard

generate a new inelastic flow

Parameters
[in]nname of the inelastic flow

◆ getFactory()

PorosityNucleationModelFactory & mfront::bbrick::PorosityNucleationModelFactory::getFactory ( )
staticnodiscard
Returns
the uniq instance of the class

◆ getRegistredPorosityNucleationModels()

std::vector< std::string > mfront::bbrick::PorosityNucleationModelFactory::getRegistredPorosityNucleationModels ( ) const
nodiscard
Returns
the list of available inelastic flows

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