|
UFO: Alien Invasion
|
Evaluates stuff like this expression. More...

Public Member Functions | |
| BinaryExpressionParser (const char *expr, BEPEvaluteCallback_t varFuncParam, const void *userdataPtr) | |
| bool | getResult () const |
| binaryExpressionParserError_t | getError () const |
Private Member Functions | |
| void | SkipWhiteSpaces (const char **s) const |
| void | NextChar (const char **s) const |
| Advance to the next char that is no whitespace. | |
| const char * | GetSwitchName (const char **s) |
| bool | CheckOR (const char **s) |
Evaluates or and xor in the given string. This is the entry point, it delegates to the and checks that are done in CheckAnd. | |
| bool | CheckAND (const char **s) |
Private Attributes | |
| binaryExpressionParserError_t | binaryExpressionParserError |
| BEPEvaluteCallback_t | varFunc |
| char | varName [MAX_VAR] |
| bool | result |
| const void * | userdata |
Evaluates stuff like this expression.
(x & !y) ^ z
Definition at line 36 of file binaryexpressionparser.cpp.
|
inline |
Definition at line 153 of file binaryexpressionparser.cpp.
References BEPERR_NOEND, BEPERR_NONE, binaryExpressionParserError, CheckOR(), Q_strvalid, result, userdata, varFunc, and varName.
|
inlineprivate |
Definition at line 108 of file binaryexpressionparser.cpp.
References BEPERR_BRACE, BEPERR_NOTFOUND, binaryExpressionParserError, CheckOR(), GetSwitchName(), NextChar(), result, SkipWhiteSpaces(), userdata, and varFunc.
Referenced by CheckOR().
|
inlineprivate |
Evaluates or and xor in the given string. This is the entry point, it delegates to the and checks that are done in CheckAnd.
Definition at line 79 of file binaryexpressionparser.cpp.
References binaryExpressionParserError, CheckAND(), NextChar(), result, and SkipWhiteSpaces().
Referenced by BinaryExpressionParser(), and CheckAND().
|
inline |
Definition at line 169 of file binaryexpressionparser.cpp.
References binaryExpressionParserError.
Referenced by BEP_Evaluate().
|
inline |
Definition at line 164 of file binaryexpressionparser.cpp.
References result.
Referenced by BEP_Evaluate().
|
inlineprivate |
Definition at line 60 of file binaryexpressionparser.cpp.
References varName.
Referenced by CheckAND().
|
inlineprivate |
Advance to the next char that is no whitespace.
Definition at line 53 of file binaryexpressionparser.cpp.
References SkipWhiteSpaces().
Referenced by CheckAND(), and CheckOR().
|
inlineprivate |
Definition at line 44 of file binaryexpressionparser.cpp.
Referenced by CheckAND(), CheckOR(), and NextChar().
|
private |
Definition at line 38 of file binaryexpressionparser.cpp.
Referenced by BinaryExpressionParser(), CheckAND(), CheckOR(), and getError().
|
private |
Definition at line 41 of file binaryexpressionparser.cpp.
Referenced by BinaryExpressionParser(), CheckAND(), CheckOR(), and getResult().
|
private |
Definition at line 42 of file binaryexpressionparser.cpp.
Referenced by BinaryExpressionParser(), and CheckAND().
|
private |
Definition at line 39 of file binaryexpressionparser.cpp.
Referenced by BinaryExpressionParser(), and CheckAND().
|
private |
Definition at line 40 of file binaryexpressionparser.cpp.
Referenced by BinaryExpressionParser(), and GetSwitchName().