Package net.imglib2.blocks
Class FallbackPrimitiveBlocks<T extends NativeType<T>,A extends ArrayDataAccess<A>>
- java.lang.Object
-
- net.imglib2.blocks.FallbackPrimitiveBlocks<T,A>
-
- All Implemented Interfaces:
PrimitiveBlocks<T>
class FallbackPrimitiveBlocks<T extends NativeType<T>,A extends ArrayDataAccess<A>> extends java.lang.Object implements PrimitiveBlocks<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.imglib2.blocks.PrimitiveBlocks
PrimitiveBlocks.OnFallback
-
-
Field Summary
Fields Modifier and Type Field Description private NativeTypeFactory<T,A>nativeTypeFactoryprivate PrimitiveTypeProperties<?,A>primitiveTypePropertiesprivate RandomAccessible<T>sourceprivate Ttype
-
Constructor Summary
Constructors Constructor Description FallbackPrimitiveBlocks(FallbackProperties<T> props)FallbackPrimitiveBlocks(RandomAccessible<T> source, T type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(long[] srcPos, java.lang.Object dest, int[] size)Copy a block from the (T-typed) source into primitive arrays (of the appropriate type).TgetType()PrimitiveBlocks<T>independentCopy()PrimitiveBlocks<T>threadSafe()Get a thread-safe version of thisPrimitiveBlocks.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.blocks.PrimitiveBlocks
copy
-
-
-
-
Field Detail
-
source
private final RandomAccessible<T extends NativeType<T>> source
-
type
private final T extends NativeType<T> type
-
primitiveTypeProperties
private final PrimitiveTypeProperties<?,A extends ArrayDataAccess<A>> primitiveTypeProperties
-
nativeTypeFactory
private final NativeTypeFactory<T extends NativeType<T>,A extends ArrayDataAccess<A>> nativeTypeFactory
-
-
Constructor Detail
-
FallbackPrimitiveBlocks
public FallbackPrimitiveBlocks(FallbackProperties<T> props)
-
FallbackPrimitiveBlocks
public FallbackPrimitiveBlocks(RandomAccessible<T> source, T type)
-
-
Method Detail
-
getType
public T getType()
- Specified by:
getTypein interfacePrimitiveBlocks<T extends NativeType<T>>
-
copy
public void copy(long[] srcPos, java.lang.Object dest, int[] size)Description copied from interface:PrimitiveBlocksCopy a block from the (T-typed) source into primitive arrays (of the appropriate type).- Specified by:
copyin interfacePrimitiveBlocks<T extends NativeType<T>>- Parameters:
srcPos- min coordinate of the block to copydest- primitive array to copy into. Must correspond toT, for example, ifTisUnsignedByteTypethendestmust bebyte[].size- the size of the block to copy
-
independentCopy
public PrimitiveBlocks<T> independentCopy()
- Specified by:
independentCopyin interfacePrimitiveBlocks<T extends NativeType<T>>
-
threadSafe
public PrimitiveBlocks<T> threadSafe()
Description copied from interface:PrimitiveBlocksGet a thread-safe version of thisPrimitiveBlocks. (Implemented as a wrapper that makesThreadLocalcopies).- Specified by:
threadSafein interfacePrimitiveBlocks<T extends NativeType<T>>
-
-