|
tfel
|
structure standing for a standard (non static) variable More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/VariableDescription.hxx>
Public Member Functions | |
| VariableDescription () | |
| default constructor | |
| VariableDescription (const VariableDescription &) | |
| copy constructor | |
| VariableDescription (VariableDescription &&) noexcept | |
| move constructor | |
| VariableDescription & | operator= (VariableDescription &&) noexcept |
| move operator | |
| VariableDescription & | operator= (const VariableDescription &) |
| assignement operator | |
| VariableDescription (const std::string &, const std::string &, const unsigned short, const size_t) | |
| constructor | |
| VariableDescription (const std::string &, const std::string &, const std::string &, const unsigned short, const size_t) | |
| constructor | |
| void | setAttribute (const std::string &, const VariableAttribute &, const bool) |
| insert a new attribute | |
| bool | hasAttribute (const std::string &) const |
| template<typename T> requires ( isVariableAttribute<T>) | |
| T & | getAttribute (const std::string &) |
| template<typename T> requires (isVariableAttribute<T>) | |
| const T & | getAttribute (const std::string &) const |
| template<typename T> requires (isVariableAttribute<T>) | |
| T | getAttribute (const std::string &, const T &) const |
| const std::map< std::string, VariableAttribute > & | getAttributes () const |
| bool | hasBounds () const |
| bool | hasBounds (const unsigned short) const |
| void | setBounds (const VariableBoundsDescription &) |
| set bounds on this variable | |
| void | setBounds (const VariableBoundsDescription &, const unsigned short) |
| set bounds on this variable | |
| const VariableBoundsDescription & | getBounds () const |
| const VariableBoundsDescription & | getBounds (const unsigned short) const |
| bool | hasPhysicalBounds () const |
| bool | hasPhysicalBounds (const unsigned short) const |
| void | setPhysicalBounds (const VariableBoundsDescription &) |
| set physical bounds on this variable | |
| void | setPhysicalBounds (const VariableBoundsDescription &, const unsigned short) |
| set physical bounds on this variable | |
| const VariableBoundsDescription & | getPhysicalBounds () const |
| const VariableBoundsDescription & | getPhysicalBounds (const unsigned short) const |
| void | setGlossaryName (const std::string &) |
| associate a glossary name to the variable | |
| void | resetGlossaryName (const std::string &) |
| associate a new glossary name to the variable | |
| void | setEntryName (const std::string &) |
| associate an entry name to the variable | |
| void | resetEntryName (const std::string &) |
| associate a new entry name to the variable | |
| bool | hasGlossaryName () const |
| bool | hasEntryName () const |
| const std::string & | getExternalName () const |
| bool | isScalar () const |
| ~VariableDescription () | |
| destructor | |
| Public Member Functions inherited from mfront::VariableDescriptionBase | |
| VariableDescriptionBase () | |
| default constructor | |
| VariableDescriptionBase (const VariableDescriptionBase &) | |
| copy constructor | |
| VariableDescriptionBase (VariableDescriptionBase &&) noexcept | |
| move constructor | |
| VariableDescriptionBase & | operator= (VariableDescriptionBase &&) noexcept |
| move operator | |
| VariableDescriptionBase & | operator= (const VariableDescriptionBase &) |
| assignement operator | |
| VariableDescriptionBase (const std::string &, const std::string &, const unsigned short, const size_t) | |
| constructor | |
| VariableDescriptionBase (const std::string &, const std::string &, const std::string &, const unsigned short, const size_t) | |
| constructor | |
| SupportedTypes::TypeFlag | getTypeFlag () const |
| SupportedTypes::TypeSize | getTypeSize () const |
| int | getVariableTypeIdentifier () const |
| ~VariableDescriptionBase () | |
| destructor | |
Static Public Member Functions | |
| static void | throwUndefinedAttribute (const std::string &) |
| throw an exception saying that no attribute with the given name exists | |
Static Public Attributes | |
| template<typename T> | |
| static constexpr bool | isVariableAttribute |
| static const char *const | depth |
| standard attribute name | |
| static const char *const | initialValue |
| standard attribute name | |
| static const char *const | defaultValue |
| standard attribute name | |
| static const char *const | errorNormalisationFactor |
| error normalisation factor | |
| static const char *const | variableDeclaredInBaseClass |
| attribute stating that a variable has already been declared in a based class. | |
Additional Inherited Members | |
| Public Attributes inherited from mfront::VariableDescriptionBase | |
| std::string | type |
| type of the variable | |
| std::string | symbolic_form |
| symbolic representation of the variable | |
| std::string | name |
| name of the variable | |
| std::string | description |
| description | |
| unsigned short | arraySize |
| if the variable has been declared as an array, this field contains a value greater than 1 | |
| size_t | lineNumber |
| line at wich the variable has been declared | |
structure standing for a standard (non static) variable
| mfront::VariableDescription::VariableDescription | ( | const std::string & | , |
| const std::string & | , | ||
| const unsigned short | , | ||
| const size_t | ) |
constructor
| [in] | t | variable type |
| [in] | n | variable name |
| [in] | as | if greater than 1, this variable will be considered as an array |
| [in] | l | line number |
| mfront::VariableDescription::VariableDescription | ( | const std::string & | , |
| const std::string & | , | ||
| const std::string & | , | ||
| const unsigned short | , | ||
| const size_t | ) |
constructor
| [in] | t | variable type |
| [in] | s | symbolic name |
| [in] | n | variable name |
| [in] | as | if greater than 1, this variable will be considered as an array |
| [in] | l | line number |
|
nodiscard |
| [in] | n | : name |
|
nodiscard |
| [in] | n | : name |
|
nodiscard |
| [in] | n | : name |
| [in] | v | : value |
|
nodiscard |
| [in] | n | : name |
|
nodiscard |
|
nodiscard |
| [in] | i | position |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| [in] | i | position |
|
nodiscard |
| [in] | n | : name |
|
nodiscard |
|
nodiscard |
| [in] | i | position |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| [in] | i | position |
|
nodiscard |
| void mfront::VariableDescription::resetEntryName | ( | const std::string & | ) |
associate a new entry name to the variable
| [in] | e | entry name |
| void mfront::VariableDescription::resetGlossaryName | ( | const std::string & | ) |
associate a new glossary name to the variable
| [in] | g | glossary name |
| void mfront::VariableDescription::setAttribute | ( | const std::string & | , |
| const VariableAttribute & | , | ||
| const bool | ) |
insert a new attribute
| [in] | n | : name |
| [in] | a | : attribute |
| [in] | b | : don't throw if the attribute already exists. In this case, the attribute is left unchanged. However the type of the attribute is checked. |
| void mfront::VariableDescription::setBounds | ( | const VariableBoundsDescription & | ) |
set bounds on this variable
| [in] | b | bounds |
| void mfront::VariableDescription::setBounds | ( | const VariableBoundsDescription & | , |
| const unsigned short | ) |
set bounds on this variable
| [in] | b | bounds |
| [in] | i | position |
| void mfront::VariableDescription::setEntryName | ( | const std::string & | ) |
associate an entry name to the variable
| [in] | e | entry name |
| void mfront::VariableDescription::setGlossaryName | ( | const std::string & | ) |
associate a glossary name to the variable
| [in] | g | glossary name |
| void mfront::VariableDescription::setPhysicalBounds | ( | const VariableBoundsDescription & | ) |
set physical bounds on this variable
| [in] | b | physical bounds |
| void mfront::VariableDescription::setPhysicalBounds | ( | const VariableBoundsDescription & | , |
| const unsigned short | ) |
set physical bounds on this variable
| [in] | b | physical bounds |
|
static |
throw an exception saying that no attribute with the given name exists
| [in] | n | name of the attribute |
|
staticconstexpr |
|
static |
attribute stating that a variable has already been declared in a based class.
This attribute has been introduced for parameters corresponding to numerical parameters declared in base classes describing the resolution algorithms.