Parser for Mode condition expressions.
More...
#include <ModeConditionParser.h>
Parser for Mode condition expressions.
Definition at line 29 of file ModeConditionParser.h.
◆ ModeConditionParser() [1/2]
ModeConditionParser::ModeConditionParser |
( |
QSharedPointer< ParameterFinder > | finder, |
|
|
PortSlice::List | portSlices, |
|
|
FieldSlice::List | fieldSlices, |
|
|
Mode::List | modes ) |
◆ ~ModeConditionParser()
ModeConditionParser::~ModeConditionParser |
( |
| ) |
|
|
overridedefault |
◆ ModeConditionParser() [2/2]
◆ findSymbolValue()
QString ModeConditionParser::findSymbolValue |
( |
QStringView | symbol | ) |
const |
|
overrideprotectedvirtual |
Finds the value for given symbol.
- Parameters
-
[in] | symbol | The symbol whose value to find. |
- Returns
- The found symbol value.
Reimplemented from IPXactSystemVerilogParser.
◆ isSymbol()
bool ModeConditionParser::isSymbol |
( |
QStringView | expression | ) |
const |
|
finalprotectedvirtual |
Checks if the given expression is a symbol e.g. reference.
- Parameters
-
[in] | expression | The expression to check. |
- Returns
- True, if the expression is a symbol, otherwise false.
Reimplemented from IPXactSystemVerilogParser.
◆ isUnaryOperator()
bool ModeConditionParser::isUnaryOperator |
( |
QStringView | token | ) |
const |
|
finalprotectedvirtual |
Checks if the given token is a unary operator.
- Parameters
-
[in] | expression | The token to check. |
- Returns
- True, if the token is a unary operator, otherwise false.
Reimplemented from SystemVerilogExpressionParser.
◆ operator=()
◆ setFieldSlices()
void ModeConditionParser::setFieldSlices |
( |
FieldSlice::List | fieldSlices | ) |
|
Set the mode-specific field slices to use while parsing expressions.
- Parameters
-
[in] | fieldSlices | The field slices to set. |
◆ setModes()
void ModeConditionParser::setModes |
( |
Mode::List | modes | ) |
|
Set the available modes to use while parsing expressions.
- Parameters
-
[in] | modes | The modes to set. |
◆ setPortSlices()
void ModeConditionParser::setPortSlices |
( |
PortSlice::List | portSlices | ) |
|
Set the mode-specific port slices to use while parsing expressions.
- Parameters
-
[in] | portSlices | The port slices to set. |
◆ solveUnary()
QString ModeConditionParser::solveUnary |
( |
QStringView | operation, |
|
|
QString const & | term ) const |
|
finalprotectedvirtual |
Solves a binary operation.
- Parameters
-
[in] | operation | The operation to solve. |
[in] | term | The term for the operation. |
- Returns
- The result of the operation.
Reimplemented from SystemVerilogExpressionParser.
The documentation for this class was generated from the following file: