Lines Matching refs:Args
1119 typedef Tuple4< const Arg0&, const Arg1&, const Arg2&, const Arg3&> Args;
1184 typedef typename Sig::Args Args;
1189 const BaseArgExprs& args) const
1191 this->doPrint(os, args);
1203 const IArgs& args) const
1205 return this->doApply(ctx, args);
1220 virtual void doPrint (ostream& os, const BaseArgExprs& args) const
1225 os << *args[0];
1228 os << ", " << *args[1];
1231 os << ", " << *args[2];
1234 os << ", " << *args[3];
1269 const ArgExprs& args)
1271 m_args (args) {}
1275 BaseArgExprs args;
1276 args.push_back(m_args.a.get());
1277 args.push_back(m_args.b.get());
1278 args.push_back(m_args.c.get());
1279 args.push_back(m_args.d.get());
1280 m_func.print(os, args);
1305 const typename Func<Sig>::ArgExprs& args)
1307 return exprP(new Apply<Sig>(func, args));
1435 const IArgs& args) const
1438 IArgs& mutArgs = const_cast<IArgs&>(args);
1443 funEnv.bind(*m_var0, args.a);
1444 funEnv.bind(*m_var1, args.b);
1445 funEnv.bind(*m_var2, args.c);
1446 funEnv.bind(*m_var3, args.d);
1499 ArgExprs args;
1501 args.a = m_var0 = variable<Arg0>(paramNames.a);
1502 args.b = m_var1 = variable<Arg1>(paramNames.b);
1503 args.c = m_var2 = variable<Arg2>(paramNames.c);
1504 args.d = m_var3 = variable<Arg3>(paramNames.d);
1506 m_ret = this->doExpand(ctx, args);
1538 void doPrint (ostream& os, const BaseArgExprs& args) const
1540 os << "(" << *args[0] << " ? " << *args[1] << " : " << *args[2] << ")";
1567 void doPrint (ostream& os, const BaseArgExprs& args) const
1569 os << "(" << *args[0] << getSymbol() << *args[1] << ")";
1774 void doPrint (ostream& os, const BaseArgExprs& args) const
1776 os << "(" << *args[0] << " " << getSymbol() << " " << *args[1] << ")";
1955 void doPrint (ostream& os, const BaseArgExprs& args) const { os << "-" << *args[0]; }
2411 const BaseArgExprs& args) const
2413 os << *args[0] << "[" << *args[1] << "]";
2463 ExprP<T> doExpand (ExpandContext&, const ArgExprs& args) const { return args.a; }
2642 void doPrint (ostream& os, const BaseArgExprs& args) const
2644 os << "-(" << *args[0] << ")";
2673 const BaseArgExprs& args) const
2675 doGetScalarFunc().print(os, args);
2727 void doPrint (ostream& os, const BaseArgExprs& args) const
2729 Func<Sig>::doPrint(os, args);
2837 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const
2839 ExprP<float> val = args.a[0] * args.b[0];
2842 val = val + args.a[ndx] * args.b[ndx];
2857 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const
2859 return args.a * args.b;
2887 ExprP<float> doExpand (ExpandContext&, const ArgExprs& args) const
2889 return sqrt(dot(args.a, args.a));
2915 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
2917 return length<Size>(args.a - args.b);
2957 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
2959 return args.a / length<Size>(args.a);
2982 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
2984 return cond(dot(args.c, args.b) < constant(0.0f), args.a, -args.a);
3004 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
3006 return args.a - (args.b * dot(args.b, args.a) * constant(2.0f));
3029 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const
3031 const ExprP<Arg0>& i = args.a;
3032 const ExprP<Arg1>& n = args.b;
3033 const ExprP<float>& eta = args.c;
3193 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const
3195 const ExprP<float>& edge0 = args.a;
3196 const ExprP<float>& edge1 = args.b;
3197 const ExprP<float>& x = args.c;
3320 void doPrint (ostream& os, const BaseArgExprs& args) const
3322 os << "(" << *args[0] << " * " << *args[1] << ")";
3471 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
3473 ExprP<Mat2> mat = args.a;
3483 ExprP<Ret> doExpand (ExpandContext&, const ArgExprs& args) const
3485 ExprP<Mat3> mat = args.a;
3497 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const
3499 ExprP<Mat4> mat = args.a;
3544 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const
3546 ExprP<Mat2> mat = args.a;
3564 ExprP<Ret> doExpand (ExpandContext& ctx, const ArgExprs& args) const
3566 ExprP<Mat3> mat = args.a;
3604 const ArgExprs& args) const
3606 ExprP<Mat4> mat = args.a;
3720 void doPrint (ostream& os, const BaseArgExprs& args) const
3722 m_func.print(os, args);
3773 void doPrint (ostream& os, const BaseArgExprs& args) const
3775 this->doGetScalarFunc().print(os, args);