|
tfel
|
Base class for a set of material properties interface. More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/CMaterialPropertyInterfaceBase.hxx>
Public Member Functions | |
| CMaterialPropertyInterfaceBase () | |
| constructor | |
| void | setOptions (const DataMap &) override |
| give options to the interface | |
| void | writeOutputFiles (const MaterialPropertyDescription &, const FileDescription &) const override |
| generate the output files | |
| ~CMaterialPropertyInterfaceBase () override | |
| destructor | |
| Public Member Functions inherited from mfront::AbstractMaterialPropertyInterface | |
| virtual std::pair< bool, tokens_iterator > | treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator)=0 |
| virtual void | getTargetsDescription (TargetsDescription &, const MaterialPropertyDescription &) const =0 |
| : fill the target descripton | |
| virtual | ~AbstractMaterialPropertyInterface () |
| destructor | |
Static Public Member Functions | |
| static VariableDescriptionContainer::size_type | getVariableNumber (const MaterialPropertyDescription &, const std::string &) |
Protected Member Functions | |
| virtual void | writeBeginHeaderNamespace (std::ostream &) const =0 |
| virtual void | writeEndHeaderNamespace (std::ostream &) const =0 |
| virtual void | writeInterfaceSymbol (std::ostream &, const MaterialPropertyDescription &) const =0 |
| virtual void | writeBeginSrcNamespace (std::ostream &) const =0 |
| virtual void | writeEndSrcNamespace (std::ostream &) const =0 |
| virtual bool | requiresCheckBoundsFunction () const =0 |
| virtual std::string | getFunctionName (const MaterialPropertyDescription &) const =0 |
| virtual std::string | getCheckBoundsFunctionName (const MaterialPropertyDescription &) const =0 |
| virtual std::string | getHeaderFileName (const std::string &, const std::string &) const =0 |
| virtual std::string | getSrcFileName (const std::string &, const std::string &) const =0 |
| virtual std::vector< std::string > | getSupportedFloatingPointTypes () const |
| virtual bool | shallGenerateOverloadedFunctionForQuantities () const |
| if the material property supports quantities, this methods returns if an overloaded function supporting quantities shall be generated. | |
| virtual void | writeArgumentsList (std::ostream &, const MaterialPropertyDescription &, const std::string_view, const bool) const |
| write the list of arguments | |
| virtual void | writeMaterialPropertyBody (std::ostream &, const MaterialPropertyDescription &, const FileDescription &, const std::string_view, const bool) const |
| write the body of the material property function | |
| virtual void | writeMaterialPropertyCheckBoundsBody (std::ostream &, const MaterialPropertyDescription &, const std::string_view) const |
| write the body of the check bounds function | |
| virtual void | writeInterfaceSpecificVariables (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeFileDescriptionSymbols (std::ostream &, const MaterialPropertyDescription &, const FileDescription &) const |
| virtual void | writeValidatorSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeCompatibilityModeSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeBuildIdentifierSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeEntryPointSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeTFELVersionSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeUnitSystemSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeLawSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeMaterialSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeMaterialKnowledgeTypeSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeVariablesNamesSymbol (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeVariablesBoundsSymbols (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeHeaderPreprocessorDirectives (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeSrcPreprocessorDirectives (std::ostream &, const MaterialPropertyDescription &) const |
| virtual void | writeCErrorTreatment (std::ostream &, const MaterialPropertyDescription &, const std::string_view, const bool) const |
| virtual void | writeCxxTryBlock (std::ostream &) const |
| write the try statement before the material property body | |
| virtual void | writeCxxCatchBlock (std::ostream &, const MaterialPropertyDescription &, const std::string_view, const bool) const |
| write catch blocks before the material property body | |
| virtual void | returnInvalidValue (std::ostream &, std::string_view, const MaterialPropertyDescription &, const std::string_view, const bool) const |
| write catch blocks before the material property body | |
| virtual std::string | getCallingConvention () const |
| virtual std::string | getSymbolName (const MaterialPropertyDescription &) const |
| virtual void | writeHeaderFile (const MaterialPropertyDescription &, const FileDescription &) const |
| : write the source file. The headerFile member has been opened appropriately and will be closed after the call. | |
| virtual void | writeSrcFile (const MaterialPropertyDescription &, const FileDescription &) const |
| : write the source file. The srcFile member has been opened appropriately and will be closed after the call. | |
Additional Inherited Members | |
| Public Types inherited from mfront::AbstractMaterialPropertyInterface | |
| using | DataMap = tfel::utilities::DataMap |
| a simple alias | |
| using | tokens_iterator |
| a simple alias | |
Base class for a set of material properties interface.
|
nodiscardprotectedpure virtual |
| [in] | mpd | material property description |
Implemented in mfront::CMaterialPropertyInterface.
|
nodiscardprotectedpure virtual |
| [in] | mpd | material property description |
Implemented in mfront::CMaterialPropertyInterface, and mfront::MFrontMaterialPropertyInterface.
|
nodiscardprotectedpure virtual |
| const | std::string&, name of the material |
| const | std::string&, name of the class |
Implemented in mfront::CMaterialPropertyInterface, and mfront::MFrontMaterialPropertyInterface.
|
nodiscardprotectedpure virtual |
| const | std::string&, name of the material |
| const | std::string&, name of the class |
Implemented in mfront::CMaterialPropertyInterface.
|
nodiscardprotectedvirtual |
The default implementation only returns double.
|
nodiscardprotectedvirtual |
| [in] | mpd | material property description |
|
static |
| [in] | mpd | material property description |
| [in] | n | variable name |
|
nodiscardprotectedpure virtual |
Implemented in mfront::CMaterialPropertyInterface.
|
protectedvirtual |
write catch blocks before the material property body
| [out] | os | output file stream |
| [in] | msh | code returning the error message (a string must be escaped) |
| [in] | mpd | material property description |
| [in] | floating_point_type | floating-point type |
| [in] | use_qt | use quantities |
give options to the interface
Those options may have been read from a configuration file or from the command line
| [in] | opts | options |
Implements mfront::AbstractMaterialPropertyInterface.
|
nodiscardprotectedvirtual |
if the material property supports quantities, this methods returns if an overloaded function supporting quantities shall be generated.
The default implementation of this method returns false.
|
protectedvirtual |
write the list of arguments
| [out] | os | output stream |
| [in] | mpd | material property description |
| [in] | t | floating-point type |
| [in] | b | boolean stating if quantities must be used |
|
protectedpure virtual |
| [out] | os | output file stream |
Implemented in mfront::CMaterialPropertyInterface.
|
protectedpure virtual |
| [out] | os | output file stream |
Implemented in mfront::CMaterialPropertyInterface.
|
protectedvirtual |
| [out] | os | output file stream |
| [out] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
| [in] | floating_point_type | floating-point type |
| [in] | use_qt | use quantities |
|
protectedvirtual |
| [out] | os | output file stream |
| [out] | mpd | material property description |
|
protectedvirtual |
write catch blocks before the material property body
| [out] | os | output file stream |
| [in] | mpd | material property description |
| [in] | floating_point_type | floating-point type |
| [in] | use_qt | use quantities |
|
protectedvirtual |
write the try statement before the material property body
| [out] | os | output file stream |
|
protectedpure virtual |
| [out] | os | output file stream |
Implemented in mfront::CMaterialPropertyInterface.
|
protectedpure virtual |
| [out] | os | output file stream |
Implemented in mfront::CMaterialPropertyInterface.
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [out] | mpd | material property description |
| [out] | mpd | file description |
|
protectedvirtual |
: write the source file. The headerFile member has been opened appropriately and will be closed after the call.
| [in] | mpd | : material property description |
| [in] | fd | : file description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | : material property description |
|
protectedpure virtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
Implemented in mfront::CMaterialPropertyInterface, mfront::ExcelMaterialPropertyInternalInterface, mfront::Fortran03MaterialPropertyInterface, mfront::FortranMaterialPropertyInterface, and mfront::MFrontMaterialPropertyInterface.
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
Reimplemented in mfront::MFrontMaterialPropertyInterface.
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
write the body of the material property function
| [out] | os | output stream |
| [in] | mpd | material property description |
| [in] | fd | file description |
| [in] | floating_point_type | floating-point type |
| [in] | use_qt | use_quantities on input/outputs |
|
protectedvirtual |
write the body of the check bounds function
| [out] | os | output stream |
| [in] | mpd | material property description |
| [in] | floating_point_type | floating-point type |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
Reimplemented in mfront::MFrontMaterialPropertyInterface.
|
overridevirtual |
generate the output files
| [in] | mpd | material property description |
| [in] | fd | mfront file description |
Implements mfront::AbstractMaterialPropertyInterface.
Reimplemented in mfront::Fortran03MaterialPropertyInterface.
|
protectedvirtual |
: write the source file. The srcFile member has been opened appropriately and will be closed after the call.
| [in] | mpd | : material property description |
| [in] | fd | : file description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [out] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | name | name of the generated material property |
| [in] | mpd | material property description |
|
protectedvirtual |
| [out] | os | output file stream |
| [in] | name | name of the generated material property |
| [in] | mpd | material property description |