本文整理汇总了C++中SymbolicVal::Visit方法的典型用法代码示例。如果您正苦于以下问题:C++ SymbolicVal::Visit方法的具体用法?C++ SymbolicVal::Visit怎么用?C++ SymbolicVal::Visit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SymbolicVal
的用法示例。
在下文中一共展示了SymbolicVal::Visit方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: operator
bool operator ()( const SymbolicVal &v, const SymbolicVal& _target)
{
target = _target;
cur = v;
result = false;
v.Visit(this);
return result;
}
示例2:
void Default0() {
if (index == 1) {
index = 2;
v2.Visit(this);
}
else {
CompareOperator::Default0(v1,v2);
}
}
示例3: operator
virtual SymbolicVal operator()( const SymbolicVal& v)
{
SymbolicVal r;
if (valmap != 0)
r = (*valmap)(v);
if (r.IsNIL()) {
v.Visit(this);
}
return r;
}
示例4: operator
bool operator()(const SymbolicVal& v, SymbolicVal* i, SymbolicVal* f)
{
inp = i;
frp = f;
if (inp != 0) *inp = 0;
if (frp != 0) *frp = 0;
hasfrac = false;
v.Visit(this);
return hasfrac;
}
示例5: VisitExpr
void VisitExpr( const SymbolicExpr &v)
{
if (target.GetValType() == VAL_EXPR && cur == target)
result = true;
else {
for (SymbolicExpr::OpdIterator iter = v.GetOpdIterator();
!iter.ReachEnd(); iter.Advance()) {
SymbolicVal tmp = v.Term2Val(iter.Current());
cur = tmp;
cur.Visit(this);
if (result)
break;
}
}
}
示例6: VisitFunction
void VisitFunction( const SymbolicFunction &v)
{
if (target.GetValType() == VAL_FUNCTION && cur == target)
result = true;
else {
for (SymbolicFunction::const_iterator p = v.args_begin();
p != v.args_end(); ++p) {
SymbolicVal tmp = *p;
cur = tmp;
cur.Visit(this);
if ( result)
break;
}
}
}
示例7: operator
SymbolicVal HasValueMapReplace :: operator() ( const SymbolicVal& v)
{
repl = SymbolicVal();
v.Visit(this);
return repl;
}
示例8: operator
SymbolicVal ReplaceParams::operator()( const SymbolicVal& v)
{
cur = SymbolicVal();
v.Visit(this);
return cur;
}