Package org.bytedeco.javacpp.indexer
Class UIntArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.UIntIndexer
org.bytedeco.javacpp.indexer.UIntArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
int[]
array, treated as unsigned.-
Field Summary
FieldsFields inherited from class org.bytedeco.javacpp.indexer.UIntIndexer
VALUE_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionUIntArrayIndexer
(int[] array) CallsUIntArrayIndexer(array, Index.create(array.length))
.UIntArrayIndexer
(int[] array, long... sizes) CallsUIntArrayIndexer(array, Index.create(sizes))
.UIntArrayIndexer
(int[] array, long[] sizes, long[] strides) CallsUIntArrayIndexer(array, Index.create(sizes, strides))
.UIntArrayIndexer
(int[] array, Index index) Constructor to set thearray
andIndexer.index
. -
Method Summary
Modifier and TypeMethodDescriptionint[]
array()
Returns the backing array, ornull
if nonelong
get
(long i) Returnsarray/buffer[index(i)]
long
get
(long... indices) Returnsarray/buffer[index(indices)]
get
(long[] indices, long[] m, int offset, int length) Returnsthis
wheren[offset:offset + length] = array/buffer[index(indices)]
long
get
(long i, long j) Returnsarray/buffer[index(i, j)]
get
(long i, long[] m, int offset, int length) Returnsthis
wheren[offset:offset + length] = array/buffer[index(i)]
long
get
(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]
get
(long i, long j, long[] m, int offset, int length) Returnsthis
wheren[offset:offset + length] = array/buffer[index(i, j)]
put
(long[] indices, long n) Returnsthis
wherearray/buffer[index(indices)] = n
put
(long[] indices, long[] m, int offset, int length) Returnsthis
wherearray/buffer[index(indices)] = n[offset:offset + length]
put
(long i, long n) Returnsthis
wherearray/buffer[index(i)] = n
put
(long i, long[] m, int offset, int length) Returnsthis
wherearray/buffer[index(i)] = n[offset:offset + length]
put
(long i, long j, long n) Returnsthis
wherearray/buffer[index(i, j)] = n
put
(long i, long j, long[] m, int offset, int length) Returnsthis
wherearray/buffer[index(i, j)] = n[offset:offset + length]
put
(long i, long j, long k, long n) Returnsthis
wherearray/buffer[index(i, j, k)] = n
Returns a new Indexer using the same data, but with a different Index.void
release()
Makes sure changes are reflected onto the backing memory and clears any references.Methods inherited from class org.bytedeco.javacpp.indexer.UIntIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
array
protected int[] arrayThe backing array.
-
-
Constructor Details
-
UIntArrayIndexer
public UIntArrayIndexer(int[] array) CallsUIntArrayIndexer(array, Index.create(array.length))
. -
UIntArrayIndexer
public UIntArrayIndexer(int[] array, long... sizes) CallsUIntArrayIndexer(array, Index.create(sizes))
. -
UIntArrayIndexer
public UIntArrayIndexer(int[] array, long[] sizes, long[] strides) CallsUIntArrayIndexer(array, Index.create(sizes, strides))
. -
UIntArrayIndexer
Constructor to set thearray
andIndexer.index
.
-
-
Method Details
-
array
public int[] array()Description copied from class:Indexer
Returns the backing array, ornull
if none -
reindex
Description copied from class:Indexer
Returns a new Indexer using the same data, but with a different Index. -
get
public long get(long i) Description copied from class:UIntIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classUIntIndexer
-
get
Description copied from class:UIntIndexer
Returnsthis
wheren[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classUIntIndexer
-
get
public long get(long i, long j) Description copied from class:UIntIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classUIntIndexer
-
get
Description copied from class:UIntIndexer
Returnsthis
wheren[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classUIntIndexer
-
get
public long get(long i, long j, long k) Description copied from class:UIntIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classUIntIndexer
-
get
public long get(long... indices) Description copied from class:UIntIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classUIntIndexer
-
get
Description copied from class:UIntIndexer
Returnsthis
wheren[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i)] = n
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j)] = n
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = n
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(indices)] = n
- Specified by:
put
in classUIntIndexer
-
put
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(indices)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
release
public void release()Description copied from class:Indexer
Makes sure changes are reflected onto the backing memory and clears any references.
-