|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.extra166y.AbstractParallelAnyArray
groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap<T>
groovyx.gpars.extra166y.ParallelArrayWithMapping<T,U>
groovyx.gpars.extra166y.AbstractParallelAnyArray.OOMPap<T,U>
groovyx.gpars.extra166y.AbstractParallelAnyArray.OUOMPap<T,U>
static final class AbstractParallelAnyArray.OUOMPap<T,U>
Nested Class Summary |
---|
Field Summary |
---|
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OOMPap |
---|
op |
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap |
---|
array |
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
---|
ex, fence, origin, threshold |
Constructor Summary | |
---|---|
AbstractParallelAnyArray.OUOMPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
T[] array,
Ops.Op<? super T,? extends U> op)
|
Method Summary | ||
---|---|---|
(package private) void |
leafApply(int lo,
int hi,
Ops.Procedure procedure)
|
|
(package private) java.lang.Object |
leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base)
|
|
ParallelArrayWithDoubleMapping<T> |
withIndexedMapping(Ops.IntAndObjectToDouble<? super U> mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
ParallelArrayWithLongMapping<T> |
withIndexedMapping(Ops.IntAndObjectToLong<? super U> mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
|
withIndexedMapping(Ops.IntAndObjectToObject<? super U,? extends V> mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
ParallelArrayWithDoubleMapping<T> |
withMapping(Ops.ObjectToDouble<? super U> op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
|
ParallelArrayWithLongMapping<T> |
withMapping(Ops.ObjectToLong<? super U> op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
|
|
withMapping(Ops.Op<? super U,? extends V> op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op applied to current op's results. |
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OOMPap |
---|
dget, hasMap, leafTransfer, leafTransferByIndex, lget, oget |
Methods inherited from class groovyx.gpars.extra166y.ParallelArrayWithMapping |
---|
all, all, any, apply, max, max, min, min, reduce, sequentially, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap |
---|
leafMoveByIndex, leafMoveSelected, ogetArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
AbstractParallelAnyArray.OUOMPap(jsr166y.ForkJoinPool ex, int origin, int fence, T[] array, Ops.Op<? super T,? extends U> op)
Method Detail |
---|
public <V> ParallelArrayWithMapping<T,V> withMapping(Ops.Op<? super U,? extends V> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,U>
op
- the op
public ParallelArrayWithDoubleMapping<T> withMapping(Ops.ObjectToDouble<? super U> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,U>
op
- the op
public ParallelArrayWithLongMapping<T> withMapping(Ops.ObjectToLong<? super U> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,U>
op
- the op
public <V> ParallelArrayWithMapping<T,V> withIndexedMapping(Ops.IntAndObjectToObject<? super U,? extends V> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,U>
mapper
- the mapper
public ParallelArrayWithDoubleMapping<T> withIndexedMapping(Ops.IntAndObjectToDouble<? super U> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,U>
mapper
- the mapper
public ParallelArrayWithLongMapping<T> withIndexedMapping(Ops.IntAndObjectToLong<? super U> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,U>
mapper
- the mapper
void leafApply(int lo, int hi, Ops.Procedure procedure)
leafApply
in class AbstractParallelAnyArray
java.lang.Object leafReduce(int lo, int hi, Ops.Reducer reducer, java.lang.Object base)
leafReduce
in class AbstractParallelAnyArray
|
Copyright © 2008–2013 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |