81 virtual void assign(ExpressionResult* res,
IVariable* var)
85 Integer size = res->size();
89 res->
data()->value(res_val);
90 ExpressionResult var_res(var);
92 var_res.
data()->value(var_val);
95 for( Integer i=0 ; i<size ; ++i)
96 var_val[res_indices[i]] = res_val[i];
99 virtual void evaluate(ExpressionResult* res,
IVariable* var)
103 Integer size = res->size();
105 throw BadOperandException(
"VariableOperatorT::evaluate");
108 VariantBase::eType type = VariantBase::fromDataType(var->
dataType());
113 res->
data()->value(res_val);
114 ExpressionResult var_res(var);
116 var_res.
data()->value(var_val);
119 for( Integer i=0 ; i<size ; ++i)
120 res_val[i] = var_val[res_indices[i]];