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[]arrayThe 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 thearrayandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]array()Returns the backing array, ornullif nonelongget(long i)Returnsarray/buffer[index(i)]longget(long... indices)Returnsarray/buffer[index(indices)]UIntIndexerget(long[] indices, long[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(indices)]longget(long i, long j)Returnsarray/buffer[index(i, j)]UIntIndexerget(long i, long[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(i)]longget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]UIntIndexerget(long i, long j, long[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]UIntIndexerput(long[] indices, long n)Returnsthiswherearray/buffer[index(indices)] = nUIntIndexerput(long[] indices, long[] m, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]UIntIndexerput(long i, long n)Returnsthiswherearray/buffer[index(i)] = nUIntIndexerput(long i, long[] m, int offset, int length)Returnsthiswherearray/buffer[index(i)] = n[offset:offset + length]UIntIndexerput(long i, long j, long n)Returnsthiswherearray/buffer[index(i, j)] = nUIntIndexerput(long i, long j, long[] m, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]UIntIndexerput(long i, long j, long k, long n)Returnsthiswherearray/buffer[index(i, j, k)] = nUIntIndexerreindex(Index index)Returns a new Indexer using the same data, but with a different Index.voidrelease()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 thearrayandIndexer.index.
-
-
Method Detail
-
array
public int[] array()
Description copied from class:IndexerReturns the backing array, ornullif none
-
reindex
public UIntIndexer reindex(Index index)
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index.
-
get
public long get(long i)
Description copied from class:UIntIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classUIntIndexer
-
get
public UIntIndexer get(long i, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classUIntIndexer
-
get
public long get(long i, long j)Description copied from class:UIntIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classUIntIndexer
-
get
public UIntIndexer get(long i, long j, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classUIntIndexer
-
get
public long get(long i, long j, long k)Description copied from class:UIntIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classUIntIndexer
-
get
public long get(long... indices)
Description copied from class:UIntIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classUIntIndexer
-
get
public UIntIndexer get(long[] indices, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classUIntIndexer
-
put
public UIntIndexer put(long i, long n)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i)] = n- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long i, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long n)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j)] = n- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long i, long j, long k, long n)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(i, j, k)] = n- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long[] indices, long n)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(indices)] = n- Specified by:
putin classUIntIndexer
-
put
public UIntIndexer put(long[] indices, long[] m, int offset, int length)
Description copied from class:UIntIndexerReturnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]- Specified by:
putin classUIntIndexer
-
-