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

abstract factory for Stress potentials. More...

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

Public Types

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

Public Member Functions

 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

Static Public Member Functions

static StressPotentialFactory & getFactory ()

Detailed Description

abstract factory for Stress potentials.

Member Function Documentation

◆ addGenerator()

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

add a new generator

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

◆ generate()

std::shared_ptr< StressPotential > mfront::bbrick::StressPotentialFactory::generate ( const std::string & ) const
nodiscard

generate a new stress potential

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