tfel
Loading...
Searching...
No Matches
OptionDescription.hxx File Reference
#include <map>
#include <vector>
#include <string>
#include "TFEL/Material/ModellingHypothesis.hxx"
#include "MFront/MFrontConfig.hxx"

Classes

struct  mfront::bbrick::OptionDescription
 class describing the option expected by a stress potential, an inelastic flow, etc. More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  mfront
 This namespace contains material used to build the MFront code generator.

Functions

MFRONT_VISIBILITY_EXPORT void mfront::bbrick::check (const tfel::utilities::DataMap &, const std::vector< OptionDescription > &)
 check that the given data matches the given options. The following points are checked:
MFRONT_VISIBILITY_EXPORT void mfront::bbrick::check (const tfel::utilities::Data &, const OptionDescription &)
 check that the given data has a type compatible with the given option type.

Detailed Description

Author
Thomas Helfer
Date
23/03/2018

Function Documentation

◆ check() [1/2]

MFRONT_VISIBILITY_EXPORT void mfront::bbrick::check ( const tfel::utilities::Data & ,
const OptionDescription &  )

check that the given data has a type compatible with the given option type.

Note
Here is a typical use case: the data is what was provided by the user in the input file and the option type is what is expected by the behaviour brick, the stress potential, etc...
Parameters
[in]ddata
[in]ooption

◆ check() [2/2]

MFRONT_VISIBILITY_EXPORT void mfront::bbrick::check ( const tfel::utilities::DataMap & ,
const std::vector< OptionDescription > &  )

check that the given data matches the given options. The following points are checked:

  • a key associated with a data must be a valid option name
  • the type of the data must be the one of the associated data
  • for every option matching a data, we check that for all required dependencies of this are associated with a data.
  • for every option matching a data, we check that there is no data associated with an incompatible option.
Note
Here is a typical use case: the data are what was provided by the user in the input file and the list of options describes what is expected by the behaviour brick, the stress potential, etc...
Parameters
[in]dvlist of data
[in]ovlist of options