tfel
Loading...
Searching...
No Matches
mfront::CodeBlock Struct Reference

structure describing a raw code block More...

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

Public Types

using Attribute
 a class used to store the attribute of a code block

Public Member Functions

 CodeBlock ()
 default contructor
 CodeBlock (CodeBlock &&) noexcept
 move contructor
 CodeBlock (const CodeBlock &)
 copy contructor
CodeBlock & operator= (CodeBlock &&) noexcept
 move assignement
CodeBlock & operator= (const CodeBlock &)
 standard assignement
 ~CodeBlock ()
 destructor

Static Public Member Functions

static void throwUnmatchedAttributeType (const std::string &)
 raise an exception stating that an attribute has not the expected type
static void throwUndeclaredAttribute (const std::string &)
 raise an exception stating that an attribute does not exist

Public Attributes

std::string code
 code
std::string description
 description
std::set< std::string > staticMembers
 static members used in the block
std::set< std::string > members
 members used in the block
std::set< std::string > block_variables
 variables defined by the DSL in this block that are effectively used.
std::map< std::string, Attribute > attributes
 variable attributes

Static Public Attributes

static const char *const safe
 standard attribute name
static const char *const requires_jacobian_decomposition
 standard attribute name
static const char *const uses_get_partial_jacobian_invert
 standard attribute name
static const char *const used_initialize_function_variables
 standard attribute name
static const char *const used_postprocessing_variables
 standard attribute name
static const char *const used_get_integration_variables_derivatives
 name of an attribute associated with the use of the getIntegrationVariablesDerivatives_X method where X is the name of a gradient or the name of an external state variable. The attribute stores the list of X's.
static const char *const used_implicit_equations_derivatives_with_respect_to_gradients_or_external_state_variables
 standard attribute name
static const char *const used_jacobian_invert_blocks
 standard attribute name

Detailed Description

structure describing a raw code block

Member Typedef Documentation

◆ Attribute

Initial value:
tfel::utilities::GenType<
bool,
std::string,
std::vector<VariableDescription>,
std::vector<std::pair<VariableDescription, VariableDescription>>>

a class used to store the attribute of a code block

Member Function Documentation

◆ throwUndeclaredAttribute()

void mfront::CodeBlock::throwUndeclaredAttribute ( const std::string & )
static

raise an exception stating that an attribute does not exist

Parameters
[in]nname of the attribute

◆ throwUnmatchedAttributeType()

void mfront::CodeBlock::throwUnmatchedAttributeType ( const std::string & )
static

raise an exception stating that an attribute has not the expected type

Parameters
[in]nname of the attribute

Member Data Documentation

◆ block_variables

std::set<std::string> mfront::CodeBlock::block_variables

variables defined by the DSL in this block that are effectively used.

For instance, in isotropic DSLs, if an isotropic hardening rule is defined, two variables named R and dR_dp will be defined and shall be used in code blocks introduced by the @FlowRule keyword.


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