Doxygen
|
Copyright (C) 1997-2015 by Dimitri van Heesch. 更多...
#include <condparser.h>
Public 成员函数 | |
CondParser () | |
bool | parse (const QCString &fileName, int lineNr, const QCString &expr) |
Copyright (C) 1997-2015 by Dimitri van Heesch. 更多... | |
Private 类型 | |
enum | TOKENTYPE { NOTHING = -1, DELIMITER, VARIABLE, UNKNOWN } |
enum | OPERATOR_ID { UNKNOWN_OP = -1, AND = 1, OR, NOT } |
Private 成员函数 | |
void | getToken () |
Get next token in the current string expr. 更多... | |
bool | parseLevel1 () |
conditional operators AND and OR 更多... | |
bool | parseLevel2 () |
NOT 更多... | |
bool | parseLevel3 () |
parenthesized expression or variable 更多... | |
bool | parseVar () |
bool | evalOperator (const int opId, bool lhs, bool rhs) |
evaluate an operator for given values 更多... | |
bool | evalVariable (const QCString &varName) |
evaluate a variable 更多... | |
int | getOperatorId (const QCString &opName) |
returns the id of the given operator returns -1 if the operator is not recognized 更多... | |
Private 属性 | |
QCString | m_err |
error state 更多... | |
QCString | m_expr |
holds the expression 更多... | |
const char * | m_e |
points to a character in expr 更多... | |
QCString | m_token |
holds the token 更多... | |
TOKENTYPE | m_tokenType |
type of the token 更多... | |
Copyright (C) 1997-2015 by Dimitri van Heesch.
Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. See the GNU General Public License for more details.
Documents produced by Doxygen are derivative works derived from the input used in their production; they are not affected by this license.
C++ Expression parser for ENABLED_SECTIONS in Doxygen
Features used: Operators: && AND operator || OR operator ! NOT operator
在文件 condparser.h 第 27 行定义.
|
private |
枚举值 | |
---|---|
UNKNOWN_OP | |
AND | |
OR | |
NOT |
在文件 condparser.h 第 43 行定义.
|
private |
|
inline |
在文件 condparser.h 第 31 行定义.
|
private |
evaluate an operator for given values
在文件 condparser.cpp 第 267 行定义.
引用了 AND, FALSE, m_err, OR , 以及 QCString::setNum().
被这些函数引用 parseLevel1().
|
private |
evaluate a variable
在文件 condparser.cpp 第 283 行定义.
引用了 Config_getList , 以及 QCString::str().
被这些函数引用 parseVar().
|
private |
returns the id of the given operator returns -1 if the operator is not recognized
在文件 condparser.cpp 第 91 行定义.
引用了 AND, NOT, OR , 以及 UNKNOWN_OP.
被这些函数引用 parseLevel1() , 以及 parseLevel2().
|
private |
Get next token in the current string expr.
Uses the data in m_expr pointed to by m_e to produce m_tokenType and m_token, set m_err in case of an error
在文件 condparser.cpp 第 108 行定义.
引用了 DELIMITER, isAlpha(), isAlphaNumSpec(), isDelimiter(), m_e, m_err, m_token, m_tokenType, NOTHING, QCString::resize(), UNKNOWN , 以及 VARIABLE.
被这些函数引用 parse(), parseLevel1(), parseLevel2(), parseLevel3() , 以及 parseVar().
Copyright (C) 1997-2015 by Dimitri van Heesch.
Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. See the GNU General Public License for more details.
Documents produced by Doxygen are derivative works derived from the input used in their production; they are not affected by this license.
C++ Expression parser for ENABLED_SECTIONS in Doxygen
Features used: Operators: && AND operator || OR operator ! NOT operator parses and evaluates the given expression.
在文件 condparser.cpp 第 36 行定义.
引用了 QCString::data(), DELIMITER, getToken(), QCString::isEmpty(), m_e, m_err, m_expr, m_token, m_tokenType, NOTHING, parseLevel1(), qPrint() , 以及 warn().
|
private |
conditional operators AND and OR
在文件 condparser.cpp 第 173 行定义.
引用了 AND, evalOperator(), getOperatorId(), getToken(), m_token, OR , 以及 parseLevel2().
被这些函数引用 parse() , 以及 parseLevel3().
|
private |
NOT
在文件 condparser.cpp 第 191 行定义.
引用了 getOperatorId(), getToken(), m_token, NOT , 以及 parseLevel3().
被这些函数引用 parseLevel1().
|
private |
parenthesized expression or variable
在文件 condparser.cpp 第 212 行定义.
引用了 DELIMITER, FALSE, getToken(), m_err, m_token, m_tokenType, parseLevel1() , 以及 parseVar().
被这些函数引用 parseLevel2().
|
private |
在文件 condparser.cpp 第 236 行定义.
引用了 evalVariable(), FALSE, getToken(), QCString::isEmpty(), m_err, m_token, m_tokenType , 以及 VARIABLE.
被这些函数引用 parseLevel3().
|
private |
|
private |
error state
在文件 condparser.h 第 54 行定义.
被这些函数引用 evalOperator(), getToken(), parse(), parseLevel3() , 以及 parseVar().
|
private |
|
private |
holds the token
在文件 condparser.h 第 58 行定义.
被这些函数引用 getToken(), parse(), parseLevel1(), parseLevel2(), parseLevel3() , 以及 parseVar().
|
private |
type of the token
在文件 condparser.h 第 59 行定义.
被这些函数引用 getToken(), parse(), parseLevel3() , 以及 parseVar().