Parser and evaluator for CIntSwissKnife.
More...
#include <Int64MathParser.h>
|
| typedef char *(* | MultiArgFunc) (int paramcnt, int64_t *args, CStrMap *strparams, int64_t *result) |
| |
| typedef int64_t(* | OneArgFunc) (int64_t arg) |
| |
| typedef struct GENAPI_NAMESPACE::CInt64MathParser::Operation | Operation |
| |
| enum | OperType_t {
OP_SHL,
OP_SHR,
OP_POW,
OP_LOGIC_NEQ,
OP_LOGIC_GEQ,
OP_LOGIC_LEQ,
OP_LOGIC_AND,
OP_LOGIC_OR,
OP_COMSTART,
OP_ASSIGN,
OP_OBR,
OP_ADD,
OP_SUB,
OP_MUL,
OP_DIV,
OP_MOD,
OP_UNK,
OP_XOR,
OP_NOT,
OP_AND,
OP_OR,
OP_EQU,
OP_GREATER,
OP_LESS,
OP_LOGIC,
OP_LOGIC_SEP,
OP_CBR,
OP_COMMA,
OP_FORMULAEND,
OP_INDEX_TO_VAR,
OP_FUNC_ONEARG,
OP_FUNC_MULTIARG
} |
| |
| typedef int(* | PrmSrchFunc) (const char *str, size_t len, int64_t *value, void *param) |
| |
Parser and evaluator for CIntSwissKnife.
Definition at line 54 of file Int64MathParser.h.
◆ MultiArgFunc
| typedef char*( * GENAPI_NAMESPACE::CInt64MathParser::MultiArgFunc) (int paramcnt, int64_t *args, CStrMap *strparams, int64_t *result) |
|
private |
◆ OneArgFunc
| typedef int64_t( * GENAPI_NAMESPACE::CInt64MathParser::OneArgFunc) (int64_t arg) |
|
private |
◆ Operation
◆ PrmSrchFunc
| typedef int( * GENAPI_NAMESPACE::CInt64MathParser::PrmSrchFunc) (const char *str, size_t len, int64_t *value, void *param) |
|
private |
◆ OperType_t
| Enumerator |
|---|
| OP_SHL | |
| OP_SHR | |
| OP_POW | |
| OP_LOGIC_NEQ | |
| OP_LOGIC_GEQ | |
| OP_LOGIC_LEQ | |
| OP_LOGIC_AND | |
| OP_LOGIC_OR | |
| OP_COMSTART | |
| OP_ASSIGN | |
| OP_OBR | |
| OP_ADD | |
| OP_SUB | |
| OP_MUL | |
| OP_DIV | |
| OP_MOD | |
| OP_UNK | |
| OP_XOR | |
| OP_NOT | |
| OP_AND | |
| OP_OR | |
| OP_EQU | |
| OP_GREATER | |
| OP_LESS | |
| OP_LOGIC | |
| OP_LOGIC_SEP | |
| OP_CBR | |
| OP_COMMA | |
| OP_FORMULAEND | |
| OP_INDEX_TO_VAR | |
| OP_FUNC_ONEARG | |
| OP_FUNC_MULTIARG | |
Definition at line 61 of file Int64MathParser.h.
◆ CInt64MathParser()
| GENAPI_NAMESPACE::CInt64MathParser::CInt64MathParser |
( |
void |
| ) |
|
◆ ~CInt64MathParser()
| GENAPI_NAMESPACE::CInt64MathParser::~CInt64MathParser |
( |
| ) |
|
◆ Calc()
| const char* GENAPI_NAMESPACE::CInt64MathParser::Calc |
( |
| ) |
|
|
private |
◆ CalcToObr()
| const char* GENAPI_NAMESPACE::CInt64MathParser::CalcToObr |
( |
| ) |
|
|
private |
◆ Eval()
| const char* GENAPI_NAMESPACE::CInt64MathParser::Eval |
( |
int64_t * |
result | ) |
|
◆ Parse()
| const char* GENAPI_NAMESPACE::CInt64MathParser::Parse |
( |
const char * |
Formula, |
|
|
bool |
ConvertUpperCase |
|
) |
| |
◆ ParseFormula()
| const char* GENAPI_NAMESPACE::CInt64MathParser::ParseFormula |
( |
bool |
ConvertUpperCase | ) |
|
|
private |
◆ PrepareFormula()
| const char* GENAPI_NAMESPACE::CInt64MathParser::PrepareFormula |
( |
| ) |
|
|
private |
◆ BrOp
| const Operation GENAPI_NAMESPACE::CInt64MathParser::BrOp |
|
staticprivate |
◆ CbrOp
| const Operation GENAPI_NAMESPACE::CInt64MathParser::CbrOp |
|
staticprivate |
◆ CommaOp
| const Operation GENAPI_NAMESPACE::CInt64MathParser::CommaOp |
|
staticprivate |
◆ errbuf
| std::vector<char> GENAPI_NAMESPACE::CInt64MathParser::errbuf |
|
private |
◆ ExtFunctions
| CStrMap* GENAPI_NAMESPACE::CInt64MathParser::ExtFunctions |
◆ IntFunctions
◆ ItvOp
| const Operation GENAPI_NAMESPACE::CInt64MathParser::ItvOp |
|
staticprivate |
◆ Lexer
◆ MathSymTable
| CSymTable GENAPI_NAMESPACE::CInt64MathParser::MathSymTable |
|
staticprivate |
◆ MoreParams
| PrmSrchFunc GENAPI_NAMESPACE::CInt64MathParser::MoreParams |
◆ NegOp
| const Operation GENAPI_NAMESPACE::CInt64MathParser::NegOp |
|
staticprivate |
◆ ObrDist
| int GENAPI_NAMESPACE::CInt64MathParser::ObrDist |
|
private |
◆ OpPriorities
| const signed char GENAPI_NAMESPACE::CInt64MathParser::OpPriorities[OP_FUNC_MULTIARG+1] |
|
staticprivate |
◆ OpStack
| std::vector<Operation> GENAPI_NAMESPACE::CInt64MathParser::OpStack |
|
private |
◆ OpStackEval
| std::vector<Operation> GENAPI_NAMESPACE::CInt64MathParser::OpStackEval |
|
private |
◆ OpTop
| int GENAPI_NAMESPACE::CInt64MathParser::OpTop |
|
private |
◆ Parameters
| CStrMap* GENAPI_NAMESPACE::CInt64MathParser::Parameters |
◆ ParamFuncParam
| void* GENAPI_NAMESPACE::CInt64MathParser::ParamFuncParam |
◆ ValStack
| std::vector<int64_t> GENAPI_NAMESPACE::CInt64MathParser::ValStack |
|
private |
◆ ValStackEval
| std::vector<int64_t> GENAPI_NAMESPACE::CInt64MathParser::ValStackEval |
|
private |
◆ ValTop
| int GENAPI_NAMESPACE::CInt64MathParser::ValTop |
|
private |
◆ VarParams
| CStrMap* GENAPI_NAMESPACE::CInt64MathParser::VarParams |
|
private |
The documentation for this class was generated from the following file: