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:
java.lang.AutoCloseable
public class UIntArrayIndexer extends UIntIndexer
An indexer for aint[]
array, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
array
The backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.UIntIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description UIntArrayIndexer(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
array()
Returns the backing array, ornull
if nonelong
get(long i)
Returnsarray/buffer[index(i)]
long
get(long... indices)
Returnsarray/buffer[index(indices)]
UIntIndexer
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)]
UIntIndexer
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)]
UIntIndexer
get(long i, long j, long[] m, int offset, int length)
Returnsthis
wheren[offset:offset + length] = array/buffer[index(i, j)]
UIntIndexer
put(long[] indices, long n)
Returnsthis
wherearray/buffer[index(indices)] = n
UIntIndexer
put(long[] indices, long[] m, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = n[offset:offset + length]
UIntIndexer
put(long i, long n)
Returnsthis
wherearray/buffer[index(i)] = n
UIntIndexer
put(long i, long[] m, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = n[offset:offset + length]
UIntIndexer
put(long i, long j, long n)
Returnsthis
wherearray/buffer[index(i, j)] = n
UIntIndexer
put(long i, long j, long[] m, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = n[offset:offset + length]
UIntIndexer
put(long i, long j, long k, long n)
Returnsthis
wherearray/buffer[index(i, j, k)] = n
UIntIndexer
reindex(Index index)
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
-
-
-
-
Constructor Detail
-
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
public UIntArrayIndexer(int[] array, Index index)
Constructor to set thearray
andIndexer.index
.
-
-
Method Detail
-
array
public int[] array()
Description copied from class:Indexer
Returns the backing array, ornull
if none
-
reindex
public UIntIndexer reindex(Index index)
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
public UIntIndexer get(long i, long[] m, int offset, int length)
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
public UIntIndexer get(long i, long j, long[] m, int offset, int length)
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
public UIntIndexer get(long[] indices, long[] m, int offset, int length)
Description copied from class:UIntIndexer
Returnsthis
wheren[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classUIntIndexer
-
put
public UIntIndexer put(long i, long n)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i)] = n
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long i, long[] m, int offset, int length)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long n)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j)] = n
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long[] m, int offset, int length)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long k, long n)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = n
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long[] indices, long n)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(indices)] = n
- Specified by:
put
in classUIntIndexer
-
put
public UIntIndexer put(long[] indices, long[] m, int offset, int length)
Description copied from class:UIntIndexer
Returnsthis
wherearray/buffer[index(indices)] = n[offset:offset + length]
- Specified by:
put
in classUIntIndexer
-
-