fastdo  0.5.12
eienexpr::ExprOperand类 参考abstract

表达式操作数 更多...

#include <eienexpr.hpp>

类 eienexpr::ExprOperand 继承关系图:
eienexpr::ExprOperand 的协作图:

Public 类型

enum  ExprOperandType {
  eotLiteral, eotIdentifier, eotReference, eotFunction,
  eotExpression
}
 
- Public 类型 继承自 eienexpr::ExprAtom
enum  ExprAtomType { eatOperator, eatOperand }
 

Public 成员函数

 ExprOperand ()
 
virtual ~ExprOperand ()
 
virtual bool evaluate (winux::SimplePointer< ExprOperand > *result)=0
 计算,结果不一定是值,还可以是其他操作数 更多...
 
winux::Mixed val ()
 把操作数计算成可用的值,如果不能算,则抛出异常 更多...
 
ExprOperandType getOperandType () const
 取得操作数类型 更多...
 
- Public 成员函数 继承自 eienexpr::ExprAtom
 ExprAtom ()
 
virtual ~ExprAtom ()
 
virtual ExprAtomclone () const =0
 克隆一个atom 更多...
 
ExprAtomType getAtomType () const
 原子类型 更多...
 
virtual winux::String toString () const =0
 字符串形式输出 更多...
 

Protected 属性

ExprOperandType _operandType
 
- Protected 属性 继承自 eienexpr::ExprAtom
ExprAtomType _atomType
 

友元

class ExprParser
 

详细描述

表达式操作数

在文件 eienexpr.hpp135 行定义.

成员枚举类型说明

枚举值
eotLiteral 

普通的字面值

eotIdentifier 

标识符(变量)

eotReference 

内部引用

eotFunction 

函数

eotExpression 

子表达式

在文件 eienexpr.hpp138 行定义.

构造及析构函数说明

eienexpr::ExprOperand::ExprOperand ( )
virtual eienexpr::ExprOperand::~ExprOperand ( )
virtual

成员函数说明

virtual bool eienexpr::ExprOperand::evaluate ( winux::SimplePointer< ExprOperand > *  result)
pure virtual

计算,结果不一定是值,还可以是其他操作数

eienexpr::Expression, eienexpr::ExprFunc, eienexpr::ExprReference, eienexpr::ExprIdentifier , 以及 eienexpr::ExprLiteral 内被实现.

ExprOperandType eienexpr::ExprOperand::getOperandType ( ) const

取得操作数类型

winux::Mixed eienexpr::ExprOperand::val ( )

把操作数计算成可用的值,如果不能算,则抛出异常

友元及相关函数文档

friend class ExprParser
friend

在文件 eienexpr.hpp160 行定义.

类成员变量说明

ExprOperandType eienexpr::ExprOperand::_operandType
protected

在文件 eienexpr.hpp158 行定义.


该类的文档由以下文件生成: