tfel
Loading...
Searching...
No Matches
mfront::CMaterialPropertyInterface Struct Reference
Inheritance diagram for mfront::CMaterialPropertyInterface:
mfront::CMaterialPropertyInterfaceBase mfront::AbstractMaterialPropertyInterface mfront::ExcelMaterialPropertyInternalInterface

Public Member Functions

std::pair< bool, tokens_iterator > treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override
void getTargetsDescription (TargetsDescription &, const MaterialPropertyDescription &) const override
 : fill the target descripton
void writeInterfaceSymbol (std::ostream &, const MaterialPropertyDescription &) const override
 ~CMaterialPropertyInterface () override
 destructor
Public Member Functions inherited from mfront::CMaterialPropertyInterfaceBase
 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 ~AbstractMaterialPropertyInterface ()
 destructor

Static Public Member Functions

static std::string getName ()
Static Public Member Functions inherited from mfront::CMaterialPropertyInterfaceBase
static VariableDescriptionContainer::size_type getVariableNumber (const MaterialPropertyDescription &, const std::string &)

Protected Member Functions

virtual std::string getGeneratedLibraryName (const MaterialPropertyDescription &) const
void writeBeginHeaderNamespace (std::ostream &) const override
void writeEndHeaderNamespace (std::ostream &) const override
void writeBeginSrcNamespace (std::ostream &) const override
void writeEndSrcNamespace (std::ostream &) const override
std::string getHeaderFileName (const std::string &, const std::string &) const override
std::string getSrcFileName (const std::string &, const std::string &) const override
std::string getFunctionName (const MaterialPropertyDescription &) const override
std::string getCheckBoundsFunctionName (const MaterialPropertyDescription &) const override
bool requiresCheckBoundsFunction () const override
Protected Member Functions inherited from mfront::CMaterialPropertyInterfaceBase
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

Member Function Documentation

◆ getCheckBoundsFunctionName()

std::string mfront::CMaterialPropertyInterface::getCheckBoundsFunctionName ( const MaterialPropertyDescription & ) const
nodiscardoverrideprotectedvirtual
Parameters
[in]mpdmaterial property description

Implements mfront::CMaterialPropertyInterfaceBase.

◆ getFunctionName()

std::string mfront::CMaterialPropertyInterface::getFunctionName ( const MaterialPropertyDescription & ) const
nodiscardoverrideprotectedvirtual
Parameters
[in]mpdmaterial property description

Implements mfront::CMaterialPropertyInterfaceBase.

◆ getGeneratedLibraryName()

virtual std::string mfront::CMaterialPropertyInterface::getGeneratedLibraryName ( const MaterialPropertyDescription & ) const
nodiscardprotectedvirtual
Returns
the name of the generated library
Parameters
[in]mpdmaterial property description

◆ getHeaderFileName()

std::string mfront::CMaterialPropertyInterface::getHeaderFileName ( const std::string & ,
const std::string &  ) const
nodiscardoverrideprotectedvirtual
Parameters
[in]mmaterial name
[in]cclass name

Implements mfront::CMaterialPropertyInterfaceBase.

◆ getSrcFileName()

std::string mfront::CMaterialPropertyInterface::getSrcFileName ( const std::string & ,
const std::string &  ) const
nodiscardoverrideprotectedvirtual
Parameters
[in]mmaterial name
[in]cclass name

Implements mfront::CMaterialPropertyInterfaceBase.

◆ getTargetsDescription()

void mfront::CMaterialPropertyInterface::getTargetsDescription ( TargetsDescription & ,
const MaterialPropertyDescription &  ) const
overridevirtual

: fill the target descripton

Parameters
[out]d: target description
[in]mpd: material property description

Implements mfront::AbstractMaterialPropertyInterface.

◆ requiresCheckBoundsFunction()

bool mfront::CMaterialPropertyInterface::requiresCheckBoundsFunction ( ) const
nodiscardoverrideprotectedvirtual
Returns
true if a check bounds function is required

Implements mfront::CMaterialPropertyInterfaceBase.

◆ treatKeyword()

std::pair< bool, tokens_iterator > mfront::CMaterialPropertyInterface::treatKeyword ( const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
overridevirtual
Parameters
[in]k: keyword treated
[in]ilist of interfaces to which the keyword is restricted
[in]p: iterator to the current token
[in]pe: iterator past the end of the file
Returns
a pair. The first entry is true if the keyword was treated by the interface. The second entry is an iterator after the last token treated.

Implements mfront::AbstractMaterialPropertyInterface.

◆ writeBeginHeaderNamespace()

void mfront::CMaterialPropertyInterface::writeBeginHeaderNamespace ( std::ostream & ) const
overrideprotectedvirtual
Parameters
[out]osoutput file stream

Implements mfront::CMaterialPropertyInterfaceBase.

◆ writeBeginSrcNamespace()

void mfront::CMaterialPropertyInterface::writeBeginSrcNamespace ( std::ostream & ) const
overrideprotectedvirtual
Parameters
[out]osoutput file stream

Implements mfront::CMaterialPropertyInterfaceBase.

◆ writeEndHeaderNamespace()

void mfront::CMaterialPropertyInterface::writeEndHeaderNamespace ( std::ostream & ) const
overrideprotectedvirtual
Parameters
[out]osoutput file stream

Implements mfront::CMaterialPropertyInterfaceBase.

◆ writeEndSrcNamespace()

void mfront::CMaterialPropertyInterface::writeEndSrcNamespace ( std::ostream & ) const
overrideprotectedvirtual
Parameters
[out]osoutput file stream

Implements mfront::CMaterialPropertyInterfaceBase.

◆ writeInterfaceSymbol()

void mfront::CMaterialPropertyInterface::writeInterfaceSymbol ( std::ostream & ,
const MaterialPropertyDescription &  ) const
overridevirtual
Parameters
[out]osoutput file stream
[in]mpdmaterial property description

Implements mfront::CMaterialPropertyInterfaceBase.

Reimplemented in mfront::ExcelMaterialPropertyInternalInterface.


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