structure standing for a variable. The support of fixed-sized arrays has been added lately. This variable is considered as an array if arraySize is greater than 1.
More...
#include </home/runner/work/tfel/tfel/mfront/include/MFront/VariableDescriptionBase.hxx>
|
| 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 variable. The support of fixed-sized arrays has been added lately. This variable is considered as an array if arraySize is greater than 1.
◆ VariableDescriptionBase() [1/2]
| mfront::VariableDescriptionBase::VariableDescriptionBase |
( |
const std::string & | , |
|
|
const std::string & | , |
|
|
const unsigned short | , |
|
|
const size_t | ) |
constructor
- Parameters
-
| [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 |
◆ VariableDescriptionBase() [2/2]
| mfront::VariableDescriptionBase::VariableDescriptionBase |
( |
const std::string & | , |
|
|
const std::string & | , |
|
|
const std::string & | , |
|
|
const unsigned short | , |
|
|
const size_t | ) |
constructor
- Parameters
-
| [in] | t | variable type |
| [in] | s | variable name |
| [in] | n | variable name |
| [in] | as | if greater than 1, this variable will be considered as an array |
| [in] | l | line number |
◆ getTypeFlag()
- Returns
- the type flag associated to a the variable
◆ getTypeSize()
- Returns
- the size of the variable
◆ getVariableTypeIdentifier()
| int mfront::VariableDescriptionBase::getVariableTypeIdentifier |
( |
| ) |
const |
|
nodiscard |
- Returns
- an integer describing the type of variable
- See also
- SupportedTypes::getVariableTypeIdentifier for details.
◆ type
| std::string mfront::VariableDescriptionBase::type |
type of the variable
If the variable has been declared as an array (see below), this field holds the type contained by the array.
The documentation for this struct was generated from the following file: