tfel
Loading...
Searching...
No Matches
mfront::GenericModelInterface Struct Referencefinal

a generic interface for point-wise models implemented using the Model domain specific language. More...

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

Inheritance diagram for mfront::GenericModelInterface:
mfront::AbstractModelInterface

Public Member Functions

 GenericModelInterface ()
 constructor
void setOptions (const DataMap &) override
 give options to the interface
std::string getLibraryName (const ModelDescription &) const
std::pair< bool, tokens_iterator > treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override
void declareReservedNames (std::set< std::string > &) override
void writeOutputFiles (const FileDescription &, const ModelDescription &) override
void getTargetsDescription (TargetsDescription &, const ModelDescription &) override
 : fill the target descripton
 ~GenericModelInterface () override
 destructor
Public Member Functions inherited from mfront::AbstractModelInterface
virtual ~AbstractModelInterface ()
 desctructor

Static Public Member Functions

static std::string getName ()

Protected Member Functions

virtual void writeHeaderFile (const FileDescription &, const ModelDescription &)
 generate the header file
virtual void writeSourceFile (const FileDescription &, const ModelDescription &)
 generate the source file

Additional Inherited Members

Public Types inherited from mfront::AbstractModelInterface
using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using TokensContainer = CxxTokenizer::TokensContainer
 a simple alias
using tokens_iterator = CxxTokenizer::TokensContainer::const_iterator
 a simple alias
using DataMap = tfel::utilities::DataMap
 a simple alias

Detailed Description

a generic interface for point-wise models implemented using the Model domain specific language.

This interface is based on the on-the-fly conversion of the model description in a behaviour description and using the interface for behaviours.

Member Function Documentation

◆ declareReservedNames()

void mfront::GenericModelInterface::declareReservedNames ( std::set< std::string > & )
overridevirtual
Parameters
[out]namesreserved names

Implements mfront::AbstractModelInterface.

◆ getLibraryName()

std::string mfront::GenericModelInterface::getLibraryName ( const ModelDescription & ) const
nodiscard
Returns
the name of the generated library

◆ getName()

std::string mfront::GenericModelInterface::getName ( )
staticnodiscard
Returns
the name of the interface

◆ getTargetsDescription()

void mfront::GenericModelInterface::getTargetsDescription ( TargetsDescription & ,
const ModelDescription &  )
overridevirtual

: fill the target descripton

Parameters
[out]tdtarget description
[in]mdmodel description

Implements mfront::AbstractModelInterface.

◆ setOptions()

void mfront::GenericModelInterface::setOptions ( const DataMap & )
overridevirtual

give options to the interface

Those options may have been read from a configuration file or from the command line

Parameters
[in]optsoptions

Implements mfront::AbstractModelInterface.

◆ treatKeyword()

std::pair< bool, tokens_iterator > mfront::GenericModelInterface::treatKeyword ( const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
nodiscardoverridevirtual
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::AbstractModelInterface.

◆ writeHeaderFile()

virtual void mfront::GenericModelInterface::writeHeaderFile ( const FileDescription & ,
const ModelDescription &  )
protectedvirtual

generate the header file

Parameters
fdfile description
mdmodel description

◆ writeOutputFiles()

void mfront::GenericModelInterface::writeOutputFiles ( const FileDescription & ,
const ModelDescription &  )
overridevirtual
Parameters
fdfile description
mdmodel description

Implements mfront::AbstractModelInterface.

◆ writeSourceFile()

virtual void mfront::GenericModelInterface::writeSourceFile ( const FileDescription & ,
const ModelDescription &  )
protectedvirtual

generate the source file

Parameters
fdfile description
mdmodel description

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