|
fastdo
0.5.12
|
变量场景类 更多...
#include <eienexpr.hpp>

类 | |
| struct | VariableStruct |
Public 成员函数 | |
| VarContext () | |
| virtual | ~VarContext () |
| VarContext (VarContext const &other) | |
| VarContext & | operator= (VarContext const &other) |
| void | set (winux::String const &name, winux::Mixed const &v) |
| 作为值,内部会new一个Mixed 更多... | |
| winux::Mixed & | set (winux::String const &name) |
| 内部会new一个Mixed并返回其引用,方便自由修改 更多... | |
| void | setPtr (winux::String const &name, winux::Mixed *v) |
| 外部引用一个Mixed指针,要确保在表达式运行期间指针所指的内容存在 更多... | |
| winux::Mixed *& | setPtr (winux::String const &name) |
| 删除已经存在的名称,然后设置一个名称,并返回其指针引用以便赋值为其他外部引用的指针 更多... | |
| bool | unset (winux::String const &name) |
| bool | has (winux::String const &name) const |
| bool | get (winux::String const &name, winux::Mixed **outVarPtr) const |
| winux::Mixed const & | get (winux::String const &name) const |
| void | clear () |
| 清空所有变量 更多... | |
Protected 属性 | |
| std::map< winux::String, VariableStruct > | _vars |
友元 | |
| class | ExprParser |
变量场景类
在文件 eienexpr.hpp 第 316 行定义.
| eienexpr::VarContext::VarContext | ( | ) |
|
virtual |
| eienexpr::VarContext::VarContext | ( | VarContext const & | other | ) |
| void eienexpr::VarContext::clear | ( | ) |
清空所有变量
| bool eienexpr::VarContext::get | ( | winux::String const & | name, |
| winux::Mixed ** | outVarPtr | ||
| ) | const |
| winux::Mixed const& eienexpr::VarContext::get | ( | winux::String const & | name | ) | const |
| bool eienexpr::VarContext::has | ( | winux::String const & | name | ) | const |
| VarContext& eienexpr::VarContext::operator= | ( | VarContext const & | other | ) |
| void eienexpr::VarContext::set | ( | winux::String const & | name, |
| winux::Mixed const & | v | ||
| ) |
作为值,内部会new一个Mixed
如果name表示的变量已存在,则直接引用其进行赋值操作
| winux::Mixed& eienexpr::VarContext::set | ( | winux::String const & | name | ) |
内部会new一个Mixed并返回其引用,方便自由修改
如果name表示的变量已存在,则直接引用其进行返回
| void eienexpr::VarContext::setPtr | ( | winux::String const & | name, |
| winux::Mixed * | v | ||
| ) |
外部引用一个Mixed指针,要确保在表达式运行期间指针所指的内容存在
如果name表示的变量已存在,则删除后重新建立
| winux::Mixed* & eienexpr::VarContext::setPtr | ( | winux::String const & | name | ) |
删除已经存在的名称,然后设置一个名称,并返回其指针引用以便赋值为其他外部引用的指针
如果name表示的变量已存在,则删除后重新建立
| bool eienexpr::VarContext::unset | ( | winux::String const & | name | ) |
|
friend |
在文件 eienexpr.hpp 第 359 行定义.
|
protected |
在文件 eienexpr.hpp 第 357 行定义.