Package org.bytedeco.javacpp.indexer
Class IntArrayIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.IntIndexer
-
- org.bytedeco.javacpp.indexer.IntArrayIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class IntArrayIndexer extends IntIndexer
An indexer for anint[]array.
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]arrayThe backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.IntIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description IntArrayIndexer(int[] array)CallsIntArrayIndexer(array, Index.create(array.length)).IntArrayIndexer(int[] array, long... sizes)CallsIntArrayIndexer(array, Index.create(sizes)).IntArrayIndexer(int[] array, long[] sizes, long[] strides)CallsIntArrayIndexer(array, Index.create(sizes, strides)).IntArrayIndexer(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 noneintget(long i)Returnsarray/buffer[index(i)]intget(long... indices)Returnsarray/buffer[index(indices)]IntIndexerget(long[] indices, int[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(indices)]IntIndexerget(long i, int[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(i)]intget(long i, long j)Returnsarray/buffer[index(i, j)]IntIndexerget(long i, long j, int[] m, int offset, int length)Returnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]intget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]IntIndexerput(long[] indices, int n)Returnsthiswherearray/buffer[index(indices)] = nIntIndexerput(long[] indices, int[] m, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]IntIndexerput(long i, int n)Returnsthiswherearray/buffer[index(i)] = nIntIndexerput(long i, int[] m, int offset, int length)Returnsthiswherearray/buffer[index(i)] = n[offset:offset + length]IntIndexerput(long i, long j, int n)Returnsthiswherearray/buffer[index(i, j)] = nIntIndexerput(long i, long j, int[] m, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]IntIndexerput(long i, long j, long k, int n)Returnsthiswherearray/buffer[index(i, j, k)] = nIntIndexerreindex(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.IntIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
-
-
-
Constructor Detail
-
IntArrayIndexer
public IntArrayIndexer(int[] array)
CallsIntArrayIndexer(array, Index.create(array.length)).
-
IntArrayIndexer
public IntArrayIndexer(int[] array, long... sizes)CallsIntArrayIndexer(array, Index.create(sizes)).
-
IntArrayIndexer
public IntArrayIndexer(int[] array, long[] sizes, long[] strides)CallsIntArrayIndexer(array, Index.create(sizes, strides)).
-
IntArrayIndexer
public IntArrayIndexer(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 IntIndexer reindex(Index index)
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index.
-
get
public int get(long i)
Description copied from class:IntIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classIntIndexer
-
get
public IntIndexer get(long i, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classIntIndexer
-
get
public int get(long i, long j)Description copied from class:IntIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classIntIndexer
-
get
public IntIndexer get(long i, long j, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classIntIndexer
-
get
public int get(long i, long j, long k)Description copied from class:IntIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classIntIndexer
-
get
public int get(long... indices)
Description copied from class:IntIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classIntIndexer
-
get
public IntIndexer get(long[] indices, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classIntIndexer
-
put
public IntIndexer put(long i, int n)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i)] = n- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long i, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long i, long j, int n)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j)] = n- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long i, long j, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long i, long j, long k, int n)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j, k)] = n- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long[] indices, int n)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(indices)] = n- Specified by:
putin classIntIndexer
-
put
public IntIndexer put(long[] indices, int[] m, int offset, int length)
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
-