|
tfel
|
generic interface for material properties More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericMaterialPropertyInterface.hxx>
Public Member Functions | |
| GenericMaterialPropertyInterface () | |
| default constructor | |
| ~GenericMaterialPropertyInterface () override | |
| destructor | |
| Public Member Functions inherited from mfront::GenericMaterialPropertyInterfaceBase | |
| GenericMaterialPropertyInterfaceBase () | |
| default constructor | |
| virtual void | getLibraryDescription (TargetsDescription &d, LibraryDescription &, const MaterialPropertyDescription &) const |
| append the generated material property to the given library description. This method allows to choose to which library is attached the material property (which is not the case of the getTargetsDescription method). | |
| virtual std::string | getFunctionName (const MaterialPropertyDescription &) const |
| void | setOptions (const DataMap &) override |
| give options to the interface | |
| void | getTargetsDescription (TargetsDescription &, const MaterialPropertyDescription &) const override |
| : fill the target descripton | |
| std::pair< bool, tokens_iterator > | treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override |
| void | writeOutputFiles (const MaterialPropertyDescription &, const FileDescription &) const override |
| generate the output files | |
| ~GenericMaterialPropertyInterfaceBase () override | |
| destructor | |
| Public Member Functions inherited from mfront::AbstractMaterialPropertyInterface | |
| virtual | ~AbstractMaterialPropertyInterface () |
| destructor | |
Static Public Member Functions | |
| static std::string | getName () |
| Static Public Member Functions inherited from mfront::GenericMaterialPropertyInterfaceBase | |
| static void | writePointEvaluation (std::ostream &, const MaterialPropertyDescription &, const PointEvaluationOptions &) |
| write the code evaluating a material property at a point, shared by the generic, cyrano and generic-parallel interfaces: physical bounds of the inputs, bounds of the inputs, body of the material property, physical bounds and bounds of the output. The variables are checked in the order of the inputs, the output being the last one. The physical bounds always make the evaluation fail. The bounds make it fail with the strict policy, and are reported with the warning policy: as with the generic interface, an unknown policy is treated as the None policy. The checks are disabled by the given macro, or not written if the runtime checks are disabled. The variables (inputs, parameters, output) and the out of bounds policy (mfront_out_of_bounds_policy) must be declared by the caller. | |
| static std::size_t | getPhysicalBoundCheck (const std::size_t, const bool) |
| static std::size_t | getBoundCheck (const MaterialPropertyDescription &, const std::size_t, const bool) |
Protected Member Functions | |
| TypesDescription | getTypesDescription () const override |
| std::vector< std::string > | getInterfaceHeaderFiles () const override |
| std::string | getInterfaceName () const override |
| std::string | getInterfaceNameInCamelCase () const override |
| std::string | getInterfaceNameInUpperCase () const override |
| std::string | getOutOfBoundsPolicyEnumerationPrefix () const override |
| Protected Member Functions inherited from mfront::GenericMaterialPropertyInterfaceBase | |
| virtual std::string | getHeaderFileName (const std::string &) const |
| virtual std::string | getSourceFileName (const std::string &) const |
| virtual void | writeHeaderFile (const MaterialPropertyDescription &, const FileDescription &) const |
| generate the output files | |
| virtual void | writeSrcFile (const MaterialPropertyDescription &, const FileDescription &) const |
| generate the output files | |
Additional Inherited Members | |
| Public Types inherited from mfront::AbstractMaterialPropertyInterface | |
| using | DataMap = tfel::utilities::DataMap |
| a simple alias | |
| using | tokens_iterator |
| a simple alias | |
| Static Public Attributes inherited from mfront::GenericMaterialPropertyInterfaceBase | |
| static constexpr std::size_t | invalid_result_check = 0 |
| identifier of the check of the finiteness of the result | |
| Static Protected Member Functions inherited from mfront::GenericMaterialPropertyInterfaceBase | |
| static void | writePointwiseFunction (std::ostream &, const MaterialPropertyDescription &, const FileDescription &, const std::string &, const PointwiseFunctionDescription &) |
| write the function evaluating a material property at a point, with the conventions of the generic interface (try block, errno, statuses -2 to -6). The parameters handler and the header declaring the function must have been written. | |
generic interface for material properties
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.
|
static |
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.
|
nodiscardoverrideprotectedvirtual |
Implements mfront::GenericMaterialPropertyInterfaceBase.