fastdo  0.5.12
eienexpr::ExprLiteral类 参考

字面值操作数,无需计算 更多...

#include <eienexpr.hpp>

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

Public 成员函数

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

静态 Public 成员函数

static bool NumberPossibility (winux::String const &str, bool *isFloat=NULL, bool *isExp=NULL)
 判断是否有解析为数字的可能性 更多...
 

Protected 属性

winux::Mixed _val
 
- Protected 属性 继承自 eienexpr::ExprOperand
ExprOperandType _operandType
 
- Protected 属性 继承自 eienexpr::ExprAtom
ExprAtomType _atomType
 

友元

class ExprParser
 

额外继承的成员函数

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

详细描述

字面值操作数,无需计算

在文件 eienexpr.hpp164 行定义.

构造及析构函数说明

eienexpr::ExprLiteral::ExprLiteral ( )
eienexpr::ExprLiteral::ExprLiteral ( winux::Mixed const &  val)
virtual eienexpr::ExprLiteral::~ExprLiteral ( )
virtual

成员函数说明

virtual ExprAtom* eienexpr::ExprLiteral::clone ( ) const
virtual

克隆一个atom

实现了 eienexpr::ExprAtom.

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

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

实现了 eienexpr::ExprOperand.

winux::Mixed const& eienexpr::ExprLiteral::getValue ( ) const
winux::Mixed& eienexpr::ExprLiteral::getValue ( )
winux::Mixed::MixedType eienexpr::ExprLiteral::getValueType ( ) const
static bool eienexpr::ExprLiteral::NumberPossibility ( winux::String const &  str,
bool *  isFloat = NULL,
bool *  isExp = NULL 
)
static

判断是否有解析为数字的可能性

void eienexpr::ExprLiteral::setValue ( winux::Mixed const &  val)
virtual winux::String eienexpr::ExprLiteral::toString ( ) const
virtual

字符串形式输出

实现了 eienexpr::ExprAtom.

友元及相关函数文档

friend class ExprParser
friend

在文件 eienexpr.hpp185 行定义.

类成员变量说明

winux::Mixed eienexpr::ExprLiteral::_val
protected

在文件 eienexpr.hpp183 行定义.


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