Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
NullParser Class Reference

Expression parser implementation that does nothing. More...

#include <NullParser.h>

Inheritance diagram for NullParser:
ExpressionParser

Public Member Functions

 NullParser ()
 The constructor.
 
 NullParser (NullParser const &rhs)=delete
 
 ~NullParser () final=default
 The destructor.
 
int baseForExpression (QStringView expression) const final
 
bool isPlainValue (QStringView expression) const final
 
NullParseroperator= (NullParser const &rhs)=delete
 
QString parseExpression (QStringView expression, bool *isValidExpression) const final
 
- Public Member Functions inherited from ExpressionParser
virtual ~ExpressionParser ()=default
 The destructor.
 

Detailed Description

Expression parser implementation that does nothing.

Definition at line 22 of file NullParser.h.

Constructor & Destructor Documentation

◆ NullParser() [1/2]

NullParser::NullParser ( )

The constructor.

◆ ~NullParser()

NullParser::~NullParser ( )
finaldefault

The destructor.

◆ NullParser() [2/2]

NullParser::NullParser ( NullParser const & rhs)
delete

Member Function Documentation

◆ baseForExpression()

int NullParser::baseForExpression ( QStringView expression) const
finalvirtual

Finds the common base in the expression.

Parameters
[in]expressionThe expression to search in.
Returns
The common base for the expression.

Implements ExpressionParser.

◆ isPlainValue()

bool NullParser::isPlainValue ( QStringView expression) const
finalvirtual

Checks if the given expression is a plain value and does not need evaluation.

Parameters
[in]expressionThe expression to check.
Returns
True, if the expression is a plain value, otherwise false.

Implements ExpressionParser.

◆ operator=()

NullParser & NullParser::operator= ( NullParser const & rhs)
delete

◆ parseExpression()

QString NullParser::parseExpression ( QStringView expression,
bool * isValidExpression ) const
finalvirtual

Parses an expression to decimal number.

Parameters
[in]expressionThe expression to parse.
Returns
The decimal value of the constant.

Implements ExpressionParser.


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