public class WrapperArrayImpl extends java.lang.Object implements ArrayImpl
BridgeNDArray| Constructor and Description |
|---|
WrapperArrayImpl(NDArray nda) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMap()
Indicates whether mapped access is available.
|
void |
close()
Shuts down this ArrayImpl for pixel access.
|
AccessImpl |
getAccess()
Returns an object which can access the pixels of this ArrayImpl.
|
java.lang.Number |
getBadValue()
The magic bad value for data.
|
java.lang.Object |
getMapped()
Returns a single primitive array holding all the pixel data of
this array.
|
OrderedNDShape |
getShape()
Returns an object representing the shape (origin and dimensions)
and pixel sequence of this object.
|
Type |
getType()
Returns the primitive type of the data held by this object.
|
NDArray |
getWrapped()
Returns the NDArray which this Wrapper is wrapping.
|
boolean |
isRandom()
Indicates whether random access is possible.
|
boolean |
isReadable()
Indicates whether read access is possible.
|
boolean |
isWritable()
Indicates whether write access is possible.
|
boolean |
multipleAccess()
Indicates whether the getAccess method may be called more than once.
|
void |
open()
Prepares this ArrayImpl for pixel access.
|
java.lang.String |
toString() |
public WrapperArrayImpl(NDArray nda)
public OrderedNDShape getShape()
ArrayImplpublic Type getType()
ArrayImplpublic java.lang.Number getBadValue()
ArrayImplgetBadValue in interface ArrayImplpublic boolean isReadable()
ArrayImplisReadable in interface ArrayImplpublic boolean isWritable()
ArrayImplisWritable in interface ArrayImplpublic boolean isRandom()
ArrayImplpublic boolean multipleAccess()
ArrayImplmultipleAccess in interface ArrayImplpublic void open()
ArrayImplpublic boolean canMap()
ArrayImplWill only be called after an open call, and before any close call.
public java.lang.Object getMapped()
ArrayImplWill only be called if canMap returns true, and only after an open call and before any close call.
public AccessImpl getAccess() throws java.io.IOException
ArrayImplThis method will only be called after the sole call to open and before the sole call to close.
This method will only be called more than once if the multipleAccess method returns true.
It is the responsibility of the caller to close the returned AccessImpl when it is no longer required; this enables resources it may hold to be released.
public void close()
throws java.io.IOException
ArrayImplpublic NDArray getWrapped()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.