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

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>

Inheritance diagram for mfront::VariableDescriptionBase:
mfront::StaticVariableDescription mfront::VariableDescription mfront::BehaviourMaterialProperty mfront::Gradient mfront::ThermodynamicForce

Public Member Functions

 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

Public Attributes

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ VariableDescriptionBase() [1/2]

mfront::VariableDescriptionBase::VariableDescriptionBase ( const std::string & ,
const std::string & ,
const unsigned short ,
const size_t  )

constructor

Parameters
[in]tvariable type
[in]nvariable name
[in]asif greater than 1, this variable will be considered as an array
[in]lline 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]tvariable type
[in]svariable name
[in]nvariable name
[in]asif greater than 1, this variable will be considered as an array
[in]lline number

Member Function Documentation

◆ getTypeFlag()

SupportedTypes::TypeFlag mfront::VariableDescriptionBase::getTypeFlag ( ) const
nodiscard
Returns
the type flag associated to a the variable

◆ getTypeSize()

SupportedTypes::TypeSize mfront::VariableDescriptionBase::getTypeSize ( ) const
nodiscard
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.

Member Data Documentation

◆ 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: