org.scijava.ops.engine.matcher.impl.OpWrappers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scijava-ops-engine Show documentation
Show all versions of scijava-ops-engine Show documentation
Java implementation of the SciJava Ops matching engine.
The newest version!
/*-
* #%L
* Java implementation of the SciJava Ops matching engine.
* %%
* Copyright (C) 2016 - 2024 SciJava developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* #L%
*/
/*
* This is autogenerated source code -- DO NOT EDIT. Instead, edit the
* corresponding template in templates/ and rerun bin/generate.groovy.
*/
package org.scijava.ops.engine.matcher.impl;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.scijava.function.Computers;
import org.scijava.function.Container;
import org.scijava.function.Functions;
import org.scijava.function.Inplaces;
import org.scijava.function.Producer;
import org.scijava.ops.api.OpEnvironment;
import org.scijava.ops.api.OpInstance;
import org.scijava.ops.api.RichOp;
import org.scijava.ops.engine.OpWrapper;
import org.scijava.ops.engine.MatchingConditions;
public class OpWrappers {
// -- producer --
public static class ProducerOpWrapper implements OpWrapper> {
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedProducer //
extends AbstractRichOp> //
implements Producer
{
public GenericTypedProducer()
{
super(instance, env, conditions);
}
@Override
public T create() {
preprocess();
// Call the op
T out = instance.op().create();
postprocess(out);
return out;
}
@Override
public Producer asOpType() {
return this;
}
}
return new GenericTypedProducer();
}
}
// -- functions --
public static class Function1OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction1 //
extends AbstractRichOp> //
implements Function
{
public GenericTypedFunction1()
{
super(instance, env, conditions);
}
@Override
public O apply(I in) //
{
preprocess(in);
// Call the op
O out = instance.op().apply(in);
postprocess(out);
return out;
}
@Override
public Function asOpType() {
return this;
}
}
return new GenericTypedFunction1();
}
}
public static class Function2OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction2 //
extends AbstractRichOp> //
implements BiFunction
{
public GenericTypedFunction2()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2) //
{
preprocess(in1, in2);
// Call the op
O out = instance.op().apply(in1, in2);
postprocess(out);
return out;
}
@Override
public BiFunction asOpType() {
return this;
}
}
return new GenericTypedFunction2();
}
}
public static class Function3OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction3 //
extends AbstractRichOp> //
implements Functions.Arity3
{
public GenericTypedFunction3()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3) //
{
preprocess(in1, in2, in3);
// Call the op
O out = instance.op().apply(in1, in2, in3);
postprocess(out);
return out;
}
@Override
public Functions.Arity3 asOpType() {
return this;
}
}
return new GenericTypedFunction3();
}
}
public static class Function4OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction4 //
extends AbstractRichOp> //
implements Functions.Arity4
{
public GenericTypedFunction4()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4) //
{
preprocess(in1, in2, in3, in4);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4);
postprocess(out);
return out;
}
@Override
public Functions.Arity4 asOpType() {
return this;
}
}
return new GenericTypedFunction4();
}
}
public static class Function5OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction5 //
extends AbstractRichOp> //
implements Functions.Arity5
{
public GenericTypedFunction5()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5) //
{
preprocess(in1, in2, in3, in4, in5);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5);
postprocess(out);
return out;
}
@Override
public Functions.Arity5 asOpType() {
return this;
}
}
return new GenericTypedFunction5();
}
}
public static class Function6OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction6 //
extends AbstractRichOp> //
implements Functions.Arity6
{
public GenericTypedFunction6()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6) //
{
preprocess(in1, in2, in3, in4, in5, in6);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6);
postprocess(out);
return out;
}
@Override
public Functions.Arity6 asOpType() {
return this;
}
}
return new GenericTypedFunction6();
}
}
public static class Function7OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction7 //
extends AbstractRichOp> //
implements Functions.Arity7
{
public GenericTypedFunction7()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7);
postprocess(out);
return out;
}
@Override
public Functions.Arity7 asOpType() {
return this;
}
}
return new GenericTypedFunction7();
}
}
public static class Function8OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction8 //
extends AbstractRichOp> //
implements Functions.Arity8
{
public GenericTypedFunction8()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8);
postprocess(out);
return out;
}
@Override
public Functions.Arity8 asOpType() {
return this;
}
}
return new GenericTypedFunction8();
}
}
public static class Function9OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction9 //
extends AbstractRichOp> //
implements Functions.Arity9
{
public GenericTypedFunction9()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9);
postprocess(out);
return out;
}
@Override
public Functions.Arity9 asOpType() {
return this;
}
}
return new GenericTypedFunction9();
}
}
public static class Function10OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction10 //
extends AbstractRichOp> //
implements Functions.Arity10
{
public GenericTypedFunction10()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10);
postprocess(out);
return out;
}
@Override
public Functions.Arity10 asOpType() {
return this;
}
}
return new GenericTypedFunction10();
}
}
public static class Function11OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction11 //
extends AbstractRichOp> //
implements Functions.Arity11
{
public GenericTypedFunction11()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11);
postprocess(out);
return out;
}
@Override
public Functions.Arity11 asOpType() {
return this;
}
}
return new GenericTypedFunction11();
}
}
public static class Function12OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction12 //
extends AbstractRichOp> //
implements Functions.Arity12
{
public GenericTypedFunction12()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12);
postprocess(out);
return out;
}
@Override
public Functions.Arity12 asOpType() {
return this;
}
}
return new GenericTypedFunction12();
}
}
public static class Function13OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction13 //
extends AbstractRichOp> //
implements Functions.Arity13
{
public GenericTypedFunction13()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13);
postprocess(out);
return out;
}
@Override
public Functions.Arity13 asOpType() {
return this;
}
}
return new GenericTypedFunction13();
}
}
public static class Function14OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction14 //
extends AbstractRichOp> //
implements Functions.Arity14
{
public GenericTypedFunction14()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14);
postprocess(out);
return out;
}
@Override
public Functions.Arity14 asOpType() {
return this;
}
}
return new GenericTypedFunction14();
}
}
public static class Function15OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction15 //
extends AbstractRichOp> //
implements Functions.Arity15
{
public GenericTypedFunction15()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14, I15 in15) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15);
postprocess(out);
return out;
}
@Override
public Functions.Arity15 asOpType() {
return this;
}
}
return new GenericTypedFunction15();
}
}
public static class Function16OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedFunction16 //
extends AbstractRichOp> //
implements Functions.Arity16
{
public GenericTypedFunction16()
{
super(instance, env, conditions);
}
@Override
public O apply(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14, I15 in15, I16 in16) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16);
// Call the op
O out = instance.op().apply(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16);
postprocess(out);
return out;
}
@Override
public Functions.Arity16 asOpType() {
return this;
}
}
return new GenericTypedFunction16();
}
}
// -- computers --
public static class Computer0OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer0 //
extends AbstractRichOp> //
implements Computers.Arity0
{
public GenericTypedComputer0()
{
super(instance, env, conditions);
}
@Override
public void compute(@Container O out) //
{
preprocess(out);
// Call the op
instance.op().compute(out);
postprocess(out);
}
@Override
public Computers.Arity0 asOpType() {
return this;
}
}
return new GenericTypedComputer0();
}
}
public static class Computer1OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer1 //
extends AbstractRichOp> //
implements Computers.Arity1
{
public GenericTypedComputer1()
{
super(instance, env, conditions);
}
@Override
public void compute(I in, @Container O out) //
{
preprocess(in, out);
// Call the op
instance.op().compute(in, out);
postprocess(out);
}
@Override
public Computers.Arity1 asOpType() {
return this;
}
}
return new GenericTypedComputer1();
}
}
public static class Computer2OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer2 //
extends AbstractRichOp> //
implements Computers.Arity2
{
public GenericTypedComputer2()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, @Container O out) //
{
preprocess(in1, in2, out);
// Call the op
instance.op().compute(in1, in2, out);
postprocess(out);
}
@Override
public Computers.Arity2 asOpType() {
return this;
}
}
return new GenericTypedComputer2();
}
}
public static class Computer3OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer3 //
extends AbstractRichOp> //
implements Computers.Arity3
{
public GenericTypedComputer3()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, @Container O out) //
{
preprocess(in1, in2, in3, out);
// Call the op
instance.op().compute(in1, in2, in3, out);
postprocess(out);
}
@Override
public Computers.Arity3 asOpType() {
return this;
}
}
return new GenericTypedComputer3();
}
}
public static class Computer4OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer4 //
extends AbstractRichOp> //
implements Computers.Arity4
{
public GenericTypedComputer4()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, @Container O out) //
{
preprocess(in1, in2, in3, in4, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, out);
postprocess(out);
}
@Override
public Computers.Arity4 asOpType() {
return this;
}
}
return new GenericTypedComputer4();
}
}
public static class Computer5OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer5 //
extends AbstractRichOp> //
implements Computers.Arity5
{
public GenericTypedComputer5()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, out);
postprocess(out);
}
@Override
public Computers.Arity5 asOpType() {
return this;
}
}
return new GenericTypedComputer5();
}
}
public static class Computer6OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer6 //
extends AbstractRichOp> //
implements Computers.Arity6
{
public GenericTypedComputer6()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, out);
postprocess(out);
}
@Override
public Computers.Arity6 asOpType() {
return this;
}
}
return new GenericTypedComputer6();
}
}
public static class Computer7OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer7 //
extends AbstractRichOp> //
implements Computers.Arity7
{
public GenericTypedComputer7()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, out);
postprocess(out);
}
@Override
public Computers.Arity7 asOpType() {
return this;
}
}
return new GenericTypedComputer7();
}
}
public static class Computer8OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer8 //
extends AbstractRichOp> //
implements Computers.Arity8
{
public GenericTypedComputer8()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, out);
postprocess(out);
}
@Override
public Computers.Arity8 asOpType() {
return this;
}
}
return new GenericTypedComputer8();
}
}
public static class Computer9OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer9 //
extends AbstractRichOp> //
implements Computers.Arity9
{
public GenericTypedComputer9()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, out);
postprocess(out);
}
@Override
public Computers.Arity9 asOpType() {
return this;
}
}
return new GenericTypedComputer9();
}
}
public static class Computer10OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer10 //
extends AbstractRichOp> //
implements Computers.Arity10
{
public GenericTypedComputer10()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, out);
postprocess(out);
}
@Override
public Computers.Arity10 asOpType() {
return this;
}
}
return new GenericTypedComputer10();
}
}
public static class Computer11OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer11 //
extends AbstractRichOp> //
implements Computers.Arity11
{
public GenericTypedComputer11()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, out);
postprocess(out);
}
@Override
public Computers.Arity11 asOpType() {
return this;
}
}
return new GenericTypedComputer11();
}
}
public static class Computer12OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer12 //
extends AbstractRichOp> //
implements Computers.Arity12
{
public GenericTypedComputer12()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, out);
postprocess(out);
}
@Override
public Computers.Arity12 asOpType() {
return this;
}
}
return new GenericTypedComputer12();
}
}
public static class Computer13OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer13 //
extends AbstractRichOp> //
implements Computers.Arity13
{
public GenericTypedComputer13()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, out);
postprocess(out);
}
@Override
public Computers.Arity13 asOpType() {
return this;
}
}
return new GenericTypedComputer13();
}
}
public static class Computer14OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer14 //
extends AbstractRichOp> //
implements Computers.Arity14
{
public GenericTypedComputer14()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, out);
postprocess(out);
}
@Override
public Computers.Arity14 asOpType() {
return this;
}
}
return new GenericTypedComputer14();
}
}
public static class Computer15OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer15 //
extends AbstractRichOp> //
implements Computers.Arity15
{
public GenericTypedComputer15()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14, I15 in15, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, out);
postprocess(out);
}
@Override
public Computers.Arity15 asOpType() {
return this;
}
}
return new GenericTypedComputer15();
}
}
public static class Computer16OpWrapper //
implements //
OpWrapper>
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedComputer16 //
extends AbstractRichOp> //
implements Computers.Arity16
{
public GenericTypedComputer16()
{
super(instance, env, conditions);
}
@Override
public void compute(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5, I6 in6, I7 in7, I8 in8, I9 in9, I10 in10, I11 in11, I12 in12, I13 in13, I14 in14, I15 in15, I16 in16, @Container O out) //
{
preprocess(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, out);
// Call the op
instance.op().compute(in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, out);
postprocess(out);
}
@Override
public Computers.Arity16 asOpType() {
return this;
}
}
return new GenericTypedComputer16();
}
}
// -- inplaces --
public static class Inplace1OpWrapper //
implements //
OpWrapper> //
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedInplace1 //
extends AbstractRichOp> //
implements Inplaces.Arity1
{
public GenericTypedInplace1()
{
super(instance, env, conditions);
}
@Override
public void mutate(IO ioType) //
{
preprocess(ioType);
// Call the op
instance.op().mutate(ioType);
// Log a new execution
postprocess(ioType);
}
@Override
public Inplaces.Arity1 asOpType() {
return this;
}
}
return new GenericTypedInplace1();
}
}
public static class Inplace2_1OpWrapper //
implements //
OpWrapper> //
{
@Override
public RichOp> wrap( //
final OpInstance> instance, //
final OpEnvironment env, //
final MatchingConditions conditions)
{
class GenericTypedInplace2_1 //
extends AbstractRichOp> //
implements Inplaces.Arity2_1
{
public GenericTypedInplace2_1()
{
super(instance, env, conditions);
}
@Override
public void mutate(IO ioType, I2 in2Type) //
{
preprocess(ioType, in2Type);
// Call the op
instance.op().mutate(ioType, in2Type);
// Log a new execution
postprocess(ioType);
}
@Override
public Inplaces.Arity2_1