|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.extra166y.AbstractParallelAnyArray groovyx.gpars.extra166y.AbstractParallelAnyArray.OPap<T> groovyx.gpars.extra166y.ParallelArrayWithMapping<T,T> groovyx.gpars.extra166y.ParallelArrayWithFilter<T> groovyx.gpars.extra166y.AbstractParallelAnyArray.ORPap<T>
static final class AbstractParallelAnyArray.ORPap<T>
Nested Class Summary |
---|
Field Summary | |
---|---|
(package private) Ops.IntAndObjectPredicate<? super T> |
selector
|
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.ORPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
T[] array,
Ops.IntAndObjectPredicate<? super T> selector)
|
Method Summary | ||
---|---|---|
(package private) boolean |
hasFilter()
|
|
(package private) boolean |
isSelected(int i)
|
|
(package private) void |
leafApply(int lo,
int hi,
Ops.Procedure procedure)
|
|
(package private) void |
leafBinaryIndexMap(int l,
int h,
Ops.IntAndObjectToObject op)
|
|
(package private) void |
leafCombineInPlace(int l,
int h,
java.lang.Object[] other,
int otherOffset,
Ops.BinaryOp combiner)
|
|
(package private) void |
leafCombineInPlace(int l,
int h,
ParallelArrayWithMapping other,
int otherOffset,
Ops.BinaryOp combiner)
|
|
(package private) void |
leafFill(int l,
int h,
java.lang.Object value)
|
|
(package private) void |
leafGenerate(int l,
int h,
Ops.Generator generator)
|
|
(package private) void |
leafIndexMap(int l,
int h,
Ops.IntToObject op)
|
|
(package private) java.lang.Object |
leafReduce(int lo,
int hi,
Ops.Reducer reducer,
java.lang.Object base)
|
|
(package private) void |
leafTransform(int l,
int h,
Ops.Op op)
|
|
ParallelArrayWithFilter<T> |
withFilter(Ops.Predicate<? super T> selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true |
|
ParallelArrayWithFilter<T> |
withIndexedFilter(Ops.IntAndObjectPredicate<? super T> selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true |
|
ParallelArrayWithDoubleMapping<T> |
withIndexedMapping(Ops.IntAndObjectToDouble<? super T> 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 T> 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 T,? 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 T> 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 T> 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 T,? extends 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 |
Methods inherited from class groovyx.gpars.extra166y.ParallelArrayWithFilter |
---|
allNonidenticalElements, allUniqueElements, hasAllEqualElements, hasAllIdenticalElements, leafTransfer, leafTransferByIndex, oget, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilter |
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 |
---|
dget, leafMoveByIndex, leafMoveSelected, lget, ogetArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Ops.IntAndObjectPredicate<? super T> selector
Constructor Detail |
---|
AbstractParallelAnyArray.ORPap(jsr166y.ForkJoinPool ex, int origin, int fence, T[] array, Ops.IntAndObjectPredicate<? super T> selector)
Method Detail |
---|
boolean hasFilter()
hasFilter
in class AbstractParallelAnyArray
boolean isSelected(int i)
isSelected
in class AbstractParallelAnyArray
public ParallelArrayWithFilter<T> withFilter(Ops.Predicate<? super T> selector)
ParallelArrayWithFilter
withFilter
in class ParallelArrayWithFilter<T>
selector
- the selector
public ParallelArrayWithFilter<T> withIndexedFilter(Ops.IntAndObjectPredicate<? super T> selector)
ParallelArrayWithFilter
withIndexedFilter
in class ParallelArrayWithFilter<T>
selector
- the selector
public <U> ParallelArrayWithMapping<T,U> withMapping(Ops.Op<? super T,? extends U> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,T>
op
- the op
public ParallelArrayWithDoubleMapping<T> withMapping(Ops.ObjectToDouble<? super T> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,T>
op
- the op
public ParallelArrayWithLongMapping<T> withMapping(Ops.ObjectToLong<? super T> op)
ParallelArrayWithMapping
withMapping
in class ParallelArrayWithMapping<T,T>
op
- the op
public <V> ParallelArrayWithMapping<T,V> withIndexedMapping(Ops.IntAndObjectToObject<? super T,? extends V> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,T>
mapper
- the mapper
public ParallelArrayWithDoubleMapping<T> withIndexedMapping(Ops.IntAndObjectToDouble<? super T> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,T>
mapper
- the mapper
public ParallelArrayWithLongMapping<T> withIndexedMapping(Ops.IntAndObjectToLong<? super T> mapper)
ParallelArrayWithMapping
withIndexedMapping
in class ParallelArrayWithMapping<T,T>
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
final void leafTransform(int l, int h, Ops.Op op)
leafTransform
in class AbstractParallelAnyArray
final void leafIndexMap(int l, int h, Ops.IntToObject op)
leafIndexMap
in class AbstractParallelAnyArray
final void leafBinaryIndexMap(int l, int h, Ops.IntAndObjectToObject op)
leafBinaryIndexMap
in class AbstractParallelAnyArray
final void leafGenerate(int l, int h, Ops.Generator generator)
leafGenerate
in class AbstractParallelAnyArray
final void leafFill(int l, int h, java.lang.Object value)
leafFill
in class AbstractParallelAnyArray
final void leafCombineInPlace(int l, int h, java.lang.Object[] other, int otherOffset, Ops.BinaryOp combiner)
leafCombineInPlace
in class AbstractParallelAnyArray
final void leafCombineInPlace(int l, int h, ParallelArrayWithMapping other, int otherOffset, Ops.BinaryOp combiner)
leafCombineInPlace
in class AbstractParallelAnyArray
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |