tfel
Loading...
Searching...
No Matches
mfront::CastemMaterialPropertyInterface Struct Reference
Inheritance diagram for mfront::CastemMaterialPropertyInterface:
mfront::AbstractMaterialPropertyInterface mfront::Castem21MaterialPropertyInterface

Public Member Functions

void setOptions (const DataMap &) override
 give options to the interface
void getTargetsDescription (TargetsDescription &, const MaterialPropertyDescription &) const override
 : fill the target descripton
void writeOutputFiles (const MaterialPropertyDescription &, const FileDescription &) const override
 generate the output files
std::pair< bool, tokens_iterator > treatKeyword (const std::string &, const std::vector< std::string > &, tokens_iterator, const tokens_iterator) override
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 getCastemFunctionName (const MaterialPropertyDescription &) const
 ~CastemMaterialPropertyInterface () override
 destructor
Public Member Functions inherited from mfront::AbstractMaterialPropertyInterface
virtual ~AbstractMaterialPropertyInterface ()
 destructor

Static Public Member Functions

static std::string getName ()

Protected Member Functions

virtual std::string getHeaderFileName (const std::string &) const
virtual std::string getSourceFileName (const std::string &) const

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

◆ getCastemFunctionName()

virtual std::string mfront::CastemMaterialPropertyInterface::getCastemFunctionName ( const MaterialPropertyDescription & ) const
nodiscardvirtual
Returns
the name of the generated function
Parameters
[in]mpd: material property description

◆ getLibraryDescription()

virtual void mfront::CastemMaterialPropertyInterface::getLibraryDescription ( TargetsDescription & d,
LibraryDescription & ,
const MaterialPropertyDescription &  ) const
virtual

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).

Parameters
[in]dtargets description
[in]llibrary description
[in]mpdmaterial property description

◆ getTargetsDescription()

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

: fill the target descripton

Parameters
[out]dtarget description
[in]mpdmaterial property description

Implements mfront::AbstractMaterialPropertyInterface.

◆ setOptions()

void mfront::CastemMaterialPropertyInterface::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::AbstractMaterialPropertyInterface.

◆ treatKeyword()

std::pair< bool, tokens_iterator > mfront::CastemMaterialPropertyInterface::treatKeyword ( const std::string & ,
const std::vector< std::string > & ,
tokens_iterator ,
const tokens_iterator  )
nodiscardoverridevirtual
Parameters
[in]k: keyword to be 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.

◆ writeOutputFiles()

void mfront::CastemMaterialPropertyInterface::writeOutputFiles ( const MaterialPropertyDescription & ,
const FileDescription &  ) const
overridevirtual

generate the output files

Parameters
[in]mpdmaterial property description
[in]fdmfront file description

Implements mfront::AbstractMaterialPropertyInterface.


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