tfel
Loading...
Searching...
No Matches
mfront::BehaviourBrickFactory Struct Reference

abstract factor for behaviour bricks More...

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

Public Types

using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using tokens_iterator = CxxTokenizer::const_iterator
 a simple alias
using constructor
 a simple alias
using BehaviourType = BehaviourDescription::BehaviourType
 a simple alias
using IntegrationScheme = BehaviourDescription::IntegrationScheme
 a simple alias

Public Member Functions

 BehaviourBrickFactory (const BehaviourBrickFactory &)=delete
BehaviourBrickFactory & operator= (const BehaviourBrickFactory &)=delete
std::shared_ptr< AbstractBehaviourBrick > get (const std::string &, AbstractBehaviourDSL &, BehaviourDescription &) const
void registerAbstractBehaviourBrick (const std::string &, const BehaviourType, const constructor)
void registerAbstractBehaviourBrick (const std::string &, const BehaviourType, const IntegrationScheme, const constructor)
void registerAbstractBehaviourBrick (const std::string &, const std::vector< BehaviourType >, const std::vector< IntegrationScheme >, const constructor)
std::vector< std::string > getRegistredBricks () const
std::vector< std::string > getRegistredBricks (const BehaviourType, const IntegrationScheme) const

Static Public Member Functions

static BehaviourBrickFactory & getFactory ()

Detailed Description

abstract factor for behaviour bricks

Member Typedef Documentation

◆ constructor

Initial value:
std::shared_ptr<AbstractBehaviourBrick> (*)(
interface class for all domain specific languages associated with behaviours.
Definition AbstractBehaviourDSL.hxx:39
Definition BehaviourDescription.hxx:62

a simple alias

Member Function Documentation

◆ get()

std::shared_ptr< AbstractBehaviourBrick > mfront::BehaviourBrickFactory::get ( const std::string & ,
AbstractBehaviourDSL & ,
BehaviourDescription &  ) const
nodiscard
Returns
the requested behaviour brick
Parameters
[in]abehaviour brick name
[in,out]dslcalling domain specific language
[in,out]mbmechanical behaviour description to be treated

◆ getFactory()

BehaviourBrickFactory & mfront::BehaviourBrickFactory::getFactory ( )
staticnodiscard
Returns
the uniq instance of the AbstractBehaviourBrick factory

◆ getRegistredBricks() [1/2]

std::vector< std::string > mfront::BehaviourBrickFactory::getRegistredBricks ( ) const
nodiscard
Returns
the names of all the registred bricks

◆ getRegistredBricks() [2/2]

std::vector< std::string > mfront::BehaviourBrickFactory::getRegistredBricks ( const BehaviourType ,
const IntegrationScheme  ) const
nodiscard
Returns
the names of all the registred bricks which are valid for the given behaviour type and integration scheme.
Parameters
[in]tbehaviour type
[in]iintegration scheme

◆ registerAbstractBehaviourBrick() [1/3]

void mfront::BehaviourBrickFactory::registerAbstractBehaviourBrick ( const std::string & ,
const BehaviourType ,
const constructor  )
Parameters
[in]aname of the behaviour brick
[in]tbehaviour type for which the brick is valid
[in]cconstructor of the behaviour brick

◆ registerAbstractBehaviourBrick() [2/3]

void mfront::BehaviourBrickFactory::registerAbstractBehaviourBrick ( const std::string & ,
const BehaviourType ,
const IntegrationScheme ,
const constructor  )
Parameters
[in]aname of the behaviour brick
[in]tbehaviour type for which the brick is valid
[in]iintegration scheme for which the brick is valid
[in]cconstructor of the behaviour brick

◆ registerAbstractBehaviourBrick() [3/3]

void mfront::BehaviourBrickFactory::registerAbstractBehaviourBrick ( const std::string & ,
const std::vector< BehaviourType > ,
const std::vector< IntegrationScheme > ,
const constructor  )
Parameters
[in]aname of the behaviour brick
[in]tsbehaviour types for which the brick is valid
[in]isintegration schemes for which the brick is valid
[in]cconstructor of the behaviour brick

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