Package org.bytedeco.javacpp.indexer
Class IntRawIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.IntIndexer
org.bytedeco.javacpp.indexer.IntRawIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for an
IntPointer using the Raw instance.- Author:
- Samuel Audet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IntPointerThe backing pointer.protected static final org.bytedeco.javacpp.indexer.RawThe instance for the raw memory interface.Fields inherited from class org.bytedeco.javacpp.indexer.IntIndexer
VALUE_BYTES -
Constructor Summary
ConstructorsConstructorDescriptionIntRawIndexer(IntPointer pointer) CallsIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).IntRawIndexer(IntPointer pointer, long... sizes) CallsIntRawIndexer(pointer, Index.create(sizes)).IntRawIndexer(IntPointer pointer, long[] sizes, long[] strides) CallsIntRawIndexer(pointer, Index.create(sizes, strides)).IntRawIndexer(IntPointer pointer, Index index) Constructor to set thepointerandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionintget(long i) Returnsarray/buffer[index(i)]intget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, int[] m, int offset, int length) Returnsthiswheren[offset:offset + length] = array/buffer[index(indices)]get(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)]get(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)]intgetRaw(long i) pointer()Returns the backing pointer, ornullif noneput(long[] indices, int n) Returnsthiswherearray/buffer[index(indices)] = nput(long[] indices, int[] m, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]put(long i, int n) Returnsthiswherearray/buffer[index(i)] = nput(long i, int[] m, int offset, int length) Returnsthiswherearray/buffer[index(i)] = n[offset:offset + length]put(long i, long j, int n) Returnsthiswherearray/buffer[index(i, j)] = nput(long i, long j, int[] m, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]put(long i, long j, long k, int n) Returnsthiswherearray/buffer[index(i, j, k)] = nputRaw(long i, int n) 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
-
Field Details
-
RAW
protected static final org.bytedeco.javacpp.indexer.Raw RAWThe instance for the raw memory interface. -
pointer
The backing pointer.
-
-
Constructor Details
-
IntRawIndexer
CallsIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())). -
IntRawIndexer
CallsIntRawIndexer(pointer, Index.create(sizes)). -
IntRawIndexer
CallsIntRawIndexer(pointer, Index.create(sizes, strides)). -
IntRawIndexer
Constructor to set thepointerandIndexer.index.
-
-
Method Details
-
pointer
Description copied from class:IndexerReturns the backing pointer, ornullif none -
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
getRaw
public int getRaw(long i) -
get
public int get(long i) Description copied from class:IntIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classIntIndexer
-
get
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
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
Description copied from class:IntIndexerReturnsthiswheren[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classIntIndexer
-
putRaw
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i)] = n- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j)] = n- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(i, j, k)] = n- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(indices)] = n- Specified by:
putin classIntIndexer
-
put
Description copied from class:IntIndexerReturnsthiswherearray/buffer[index(indices)] = n[offset:offset + length]- Specified by:
putin classIntIndexer
-
release
public void release()Description copied from class:IndexerMakes sure changes are reflected onto the backing memory and clears any references.
-