fastdo
0.5.12
|
表达式 更多...
#include <eienexpr.hpp>
Public 成员函数 | |
Expression (VarContext *ctx, Expression *owner, void *data) | |
virtual | ~Expression () |
Expression (Expression const &other) | |
Expression & | operator= (Expression const &other) |
virtual ExprAtom * | clone () const |
克隆一个atom 更多... | |
virtual winux::String | toString () const |
字符串形式输出 更多... | |
virtual bool | evaluate (winux::SimplePointer< ExprOperand > *result) |
计算,结果不一定是值,还可以是其他操作数 更多... | |
bool | isEmpty () const |
VarContext * | getVarContext () const |
void * | getDataPtr () const |
取得外部数据对象指针 更多... | |
void | _clear () |
void | _addAtom (ExprAtom *atom) |
添加一个原子,atom必须是new的或者clone()的 更多... | |
![]() | |
ExprOperand () | |
virtual | ~ExprOperand () |
winux::Mixed | val () |
把操作数计算成可用的值,如果不能算,则抛出异常 更多... | |
ExprOperandType | getOperandType () const |
取得操作数类型 更多... | |
![]() | |
ExprAtom () | |
virtual | ~ExprAtom () |
ExprAtomType | getAtomType () const |
原子类型 更多... | |
Public 属性 | |
std::vector< ExprAtom * > | _suffixAtoms |
后缀式原子 更多... | |
VarContext * | _varCtx |
变量场景 更多... | |
Expression * | _owner |
拥有者 更多... | |
void * | _data |
外部数据 更多... | |
友元 | |
class | ExprIdentifier |
class | ExprParser |
额外继承的成员函数 | |
![]() | |
enum | ExprOperandType { eotLiteral, eotIdentifier, eotReference, eotFunction, eotExpression } |
![]() | |
enum | ExprAtomType { eatOperator, eatOperand } |
![]() | |
ExprOperandType | _operandType |
![]() | |
ExprAtomType | _atomType |
表达式
在文件 eienexpr.hpp 第 284 行定义.
eienexpr::Expression::Expression | ( | VarContext * | ctx, |
Expression * | owner, | ||
void * | data | ||
) |
|
virtual |
eienexpr::Expression::Expression | ( | Expression const & | other | ) |
void eienexpr::Expression::_addAtom | ( | ExprAtom * | atom | ) |
添加一个原子,atom必须是new的或者clone()的
void eienexpr::Expression::_clear | ( | ) |
|
virtual |
克隆一个atom
实现了 eienexpr::ExprAtom.
|
virtual |
计算,结果不一定是值,还可以是其他操作数
void* eienexpr::Expression::getDataPtr | ( | ) | const |
取得外部数据对象指针
VarContext* eienexpr::Expression::getVarContext | ( | ) | const |
|
inline |
在文件 eienexpr.hpp 第 296 行定义.
Expression& eienexpr::Expression::operator= | ( | Expression const & | other | ) |
|
virtual |
字符串形式输出
实现了 eienexpr::ExprAtom.
|
friend |
在文件 eienexpr.hpp 第 311 行定义.
|
friend |
在文件 eienexpr.hpp 第 312 行定义.
void* eienexpr::Expression::_data |
外部数据
在文件 eienexpr.hpp 第 305 行定义.
Expression* eienexpr::Expression::_owner |
拥有者
在文件 eienexpr.hpp 第 304 行定义.
std::vector<ExprAtom *> eienexpr::Expression::_suffixAtoms |
后缀式原子
在文件 eienexpr.hpp 第 302 行定义.
VarContext* eienexpr::Expression::_varCtx |
变量场景
在文件 eienexpr.hpp 第 303 行定义.