|
tfel
|
#include </home/runner/work/tfel/tfel/mfront/include/MFront/BehaviourBrickBase.hxx>
Public Member Functions | |
| BehaviourBrickBase (AbstractBehaviourDSL &, BehaviourDescription &) | |
| std::pair< bool, tokens_iterator > | treatKeyword (const std::string &, tokens_iterator &, const tokens_iterator) override |
| treat a keyword | |
| ~BehaviourBrickBase () override | |
| destructor | |
| Public Member Functions inherited from mfront::AbstractBehaviourBrick | |
| virtual std::string | getName () const =0 |
| return the name of the brick | |
| virtual BehaviourBrickDescription | getDescription () const =0 |
| virtual std::vector< bbrick::OptionDescription > | getOptions (const bool) const =0 |
| virtual void | initialize (const Parameters &, const DataMap &)=0 |
| intialize the brick | |
| virtual std::vector< Hypothesis > | getSupportedModellingHypotheses () const =0 |
| This method returns the list of supported modelling hypotheses that are supported by the brick. | |
| virtual void | endTreatment () const =0 |
| method called at the end of the input file processing | |
| virtual void | completeVariableDeclaration () const =0 |
| complete the variable description | |
| virtual | ~AbstractBehaviourBrick () |
| descructor | |
Protected Types | |
| using | GlossaryEntry = tfel::glossary::GlossaryEntry |
| a simple alias | |
Protected Member Functions | |
| virtual void | checkOptionsNames (const DataMap &) |
| check that the options names are in a given set of keys. | |
| virtual void | checkThatParameterHasNoValue (const Parameter &) const |
| throw an exception if the given parameter has a value | |
| virtual void | addMaterialPropertyIfNotDefined (const std::string &, const std::string &, const GlossaryEntry &, const unsigned short=1u) const |
| add a new material property | |
| virtual void | addMaterialPropertyIfNotDefined (const std::string &, const std::string &, const std::string &, const unsigned short=1u) const |
| add a new material property | |
| virtual void | addExternalStateVariable (const std::string &, const std::string &, const unsigned short=1u) const |
| add a new external state variable | |
| virtual void | addExternalStateVariable (const std::string &, const std::string &, const GlossaryEntry &, const unsigned short=1u) const |
| add a new external state variable | |
| virtual void | addExternalStateVariable (const std::string &, const std::string &, const std::string &, const unsigned short=1u) const |
| add a new external state variable | |
| virtual void | addLocalVariable (const std::string &, const std::string &, const unsigned short=1u) const |
| add a new local variable | |
| virtual void | addParameter (const std::string &, const GlossaryEntry &e, const double) const |
| add a new material property | |
| virtual void | addParameter (const std::string &, const GlossaryEntry &, const unsigned short, const double) const |
| add a new material property | |
| virtual void | addParameter (const std::string &, const GlossaryEntry &, const unsigned short, const std::vector< double > &) const |
| add a new material property | |
| virtual void | addParameter (const std::string &, const std::string &, const double) const |
| add a new material property | |
| virtual void | addParameter (const std::string &, const std::string &, const unsigned short, const double) const |
| add a new material property | |
| virtual void | addParameter (const std::string &, const std::string &, const unsigned short, const std::vector< double > &) const |
| add a new material property | |
Protected Attributes | |
| AbstractBehaviourDSL & | dsl |
| calling domain specific language | |
| BehaviourDescription & | bd |
| mechanical behaviour description of which the BehaviourBrick acts | |
Additional Inherited Members | |
| Public Types inherited from mfront::AbstractBehaviourBrick | |
| using | ModellingHypothesis = tfel::material::ModellingHypothesis |
| a simple alias | |
| using | Hypothesis = ModellingHypothesis::Hypothesis |
| a simple alias | |
| using | CxxTokenizer = tfel::utilities::CxxTokenizer |
| a simple alias | |
| using | tokens_iterator = CxxTokenizer::const_iterator |
| a simple alias | |
| using | Parameters = std::map<std::string, std::string> |
| using | Parameter = Parameters::value_type |
| a simple alias | |
| using | Data = tfel::utilities::Data |
| a simple alias | |
| using | DataMap = tfel::utilities::DataMap |
| a simple alias | |
an helper class providing a set of helper method to build BehaviourBricks.
| mfront::BehaviourBrickBase::BehaviourBrickBase | ( | AbstractBehaviourDSL & | , |
| BehaviourDescription & | ) |
constructor
| [in] | dsl_ | : domain specific language |
| [in] | bd_ | : behaviour description |
|
protectedvirtual |
add a new external state variable
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | g | glossary entry |
| [in] | s | array size |
|
protectedvirtual |
add a new external state variable
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
|
protectedvirtual |
add a new external state variable
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | s | array size |
|
protectedvirtual |
add a new local variable
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | s | array size |
|
protectedvirtual |
add a new material property
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | g | glossary name |
| [in] | s | array size |
|
protectedvirtual |
add a new material property
| [in] | t | type of the material property |
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default value |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default values |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | p | parameter default value |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | p | parameter default value |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default value |
|
protectedvirtual |
add a new material property
| [in] | n | name of the variable |
| [in] | e | entry name |
| [in] | s | array size |
| [in] | p | parameter default values |
check that the options names are in a given set of keys.
| [in] | d | options |
|
protectedvirtual |
throw an exception if the given parameter has a value
| [in] | p | : parameter |
|
overridevirtual |
treat a keyword
| [in] | key | keyword to be treated |
| [in,out] | p | current position in the file |
| [in] | pe | iterator past the end of the file |
Implements mfront::AbstractBehaviourBrick.