Package org.bytedeco.javacpp.indexer
Class UIntRawIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.UIntIndexer
-
- org.bytedeco.javacpp.indexer.UIntRawIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class UIntRawIndexer extends UIntIndexer
An indexer for aIntPointerusing theRawinstance, treated as unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) longbaseBase address and number of elements accessible.protected IntPointerpointerThe backing pointer.protected static RawRAWThe instance for the raw memory interface.(package private) longsizeBase address and number of elements accessible.-
Fields inherited from class org.bytedeco.javacpp.indexer.UIntIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description UIntRawIndexer(IntPointer pointer)CallsUIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).UIntRawIndexer(IntPointer pointer, long... sizes)CallsUIntRawIndexer(pointer, Index.create(sizes)).UIntRawIndexer(IntPointer pointer, long[] sizes, long[] strides)CallsUIntRawIndexer(pointer, Index.create(sizes, strides)).UIntRawIndexer(IntPointer pointer, Index index)Constructor to set thepointerandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(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)]longgetRaw(long i)Pointerpointer()Returns the backing pointer, ornullif noneUIntIndexerput(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)] = nUIntIndexerputRaw(long i, long n)UIntIndexerreindex(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
-
-
-
-
Field Detail
-
RAW
protected static final Raw RAW
The instance for the raw memory interface.
-
pointer
protected IntPointer pointer
The backing pointer.
-
base
final long base
Base address and number of elements accessible.
-
size
final long size
Base address and number of elements accessible.
-
-
Constructor Detail
-
UIntRawIndexer
public UIntRawIndexer(IntPointer pointer)
CallsUIntRawIndexer(pointer, Index.create(pointer.limit() - pointer.position())).
-
UIntRawIndexer
public UIntRawIndexer(IntPointer pointer, long... sizes)
CallsUIntRawIndexer(pointer, Index.create(sizes)).
-
UIntRawIndexer
public UIntRawIndexer(IntPointer pointer, long[] sizes, long[] strides)
CallsUIntRawIndexer(pointer, Index.create(sizes, strides)).
-
UIntRawIndexer
public UIntRawIndexer(IntPointer pointer, Index index)
Constructor to set thepointerandIndexer.index.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:IndexerReturns the backing pointer, 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.
-
getRaw
public long getRaw(long i)
-
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
-
putRaw
public UIntIndexer putRaw(long i, long n)
-
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
-
-