Package com.rpl.rama
Class Expr
java.lang.Object
com.rpl.rama.Expr
Specifies an expression to be used in an argument position in dataflow code. The expression executes
like a nested
Example:
each call that emits one result to out.
Example:
Block.each(Ops.PLUS, new Expr(Ops.TIMES, 2, 3), 1).out("*res") computes
2 * 3 + 1 and stores result in "*res".- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an expression for built-in operation that takes any number of argumentsExpr(RamaFunction0<R> op) Constructs an expression with zero argumentsExpr(RamaFunction1<T0, R> op, Object arg0) Constructs an expression with one argumentExpr(RamaFunction2<T0, T1, R> op, Object arg0, Object arg1) Constructs an expression with two argumentsExpr(RamaFunction3<T0, T1, T2, R> op, Object arg0, Object arg1, Object arg2) Constructs an expression with three argumentsConstructs an expression with four argumentsExpr(RamaFunction5<T0, T1, T2, T3, T4, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) Constructs an expression with five argumentsExpr(RamaFunction6<T0, T1, T2, T3, T4, T5, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) Constructs an expression with six argumentsExpr(RamaFunction7<T0, T1, T2, T3, T4, T5, T6, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) Constructs an expression with seven argumentsExpr(RamaFunction8<T0, T1, T2, T3, T4, T5, T6, T7, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7) Constructs an expression with eight arguments -
Method Summary
-
Constructor Details
-
Expr
Constructs an expression with zero arguments -
Expr
Constructs an expression with one argument -
Expr
Constructs an expression with two arguments -
Expr
Constructs an expression with three arguments -
Expr
Constructs an expression with four arguments -
Expr
public Expr(RamaFunction5<T0, T1, T2, T3, T4, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) Constructs an expression with five arguments -
Expr
public Expr(RamaFunction6<T0, T1, T2, T3, T4, T5, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) Constructs an expression with six arguments -
Expr
public Expr(RamaFunction7<T0, T1, T2, T3, T4, T5, T6, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) Constructs an expression with seven arguments -
Expr
public Expr(RamaFunction8<T0, T1, T2, T3, T4, T5, T6, T7, R> op, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6, Object arg7) Constructs an expression with eight arguments -
Expr
Constructs an expression for built-in operation that takes any number of arguments
-
-
Method Details
-
getOp
-
getArgs
-