Package org.bytedeco.javacpp.indexer
Class LongRawIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.LongIndexer
-
- org.bytedeco.javacpp.indexer.LongRawIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class LongRawIndexer extends LongIndexer
An indexer for aLongPointer
using theRaw
instance.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
base
Base address and number of elements accessible.protected LongPointer
pointer
The backing pointer.protected static Raw
RAW
The instance for the raw memory interface.(package private) long
size
Base address and number of elements accessible.-
Fields inherited from class org.bytedeco.javacpp.indexer.LongIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description LongRawIndexer(LongPointer pointer)
CallsLongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.LongRawIndexer(LongPointer pointer, long... sizes)
CallsLongRawIndexer(pointer, Index.create(sizes))
.LongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
CallsLongRawIndexer(pointer, Index.create(sizes, strides))
.LongRawIndexer(LongPointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
get(long i)
Returnsarray/buffer[index(i)]
long
get(long... indices)
Returnsarray/buffer[index(indices)]
LongIndexer
get(long[] indices, long[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
long
get(long i, long j)
Returnsarray/buffer[index(i, j)]
LongIndexer
get(long i, long[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
long
get(long i, long j, long k)
Returnsarray/buffer[index(i, j, k)]
LongIndexer
get(long i, long j, long[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
long
getRaw(long i)
Pointer
pointer()
Returns the backing pointer, ornull
if noneLongIndexer
put(long[] indices, long l)
Returnsthis
wherearray/buffer[index(indices)] = l
LongIndexer
put(long[] indices, long[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
LongIndexer
put(long i, long l)
Returnsthis
wherearray/buffer[index(i)] = l
LongIndexer
put(long i, long[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
LongIndexer
put(long i, long j, long l)
Returnsthis
wherearray/buffer[index(i, j)] = l
LongIndexer
put(long i, long j, long[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
LongIndexer
put(long i, long j, long k, long l)
Returnsthis
wherearray/buffer[index(i, j, k)] = l
LongIndexer
putRaw(long i, long l)
LongIndexer
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.LongIndexer
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 LongPointer 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
-
LongRawIndexer
public LongRawIndexer(LongPointer pointer)
CallsLongRawIndexer(pointer, Index.create(pointer.limit() - pointer.position()))
.
-
LongRawIndexer
public LongRawIndexer(LongPointer pointer, long... sizes)
CallsLongRawIndexer(pointer, Index.create(sizes))
.
-
LongRawIndexer
public LongRawIndexer(LongPointer pointer, long[] sizes, long[] strides)
CallsLongRawIndexer(pointer, Index.create(sizes, strides))
.
-
LongRawIndexer
public LongRawIndexer(LongPointer pointer, Index index)
Constructor to set thepointer
andIndexer.index
.
-
-
Method Detail
-
pointer
public Pointer pointer()
Description copied from class:Indexer
Returns the backing pointer, ornull
if none
-
reindex
public LongIndexer reindex(Index index)
Description copied from class:Indexer
Returns 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:LongIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classLongIndexer
-
get
public LongIndexer get(long i, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long i, long j)
Description copied from class:LongIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classLongIndexer
-
get
public LongIndexer get(long i, long j, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long i, long j, long k)
Description copied from class:LongIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classLongIndexer
-
get
public long get(long... indices)
Description copied from class:LongIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classLongIndexer
-
get
public LongIndexer get(long[] indices, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classLongIndexer
-
putRaw
public LongIndexer putRaw(long i, long l)
-
put
public LongIndexer put(long i, long l)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i)] = l
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long i, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long i, long j, long l)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long i, long j, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long i, long j, long k, long l)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = l
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long[] indices, long l)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l
- Specified by:
put
in classLongIndexer
-
put
public LongIndexer put(long[] indices, long[] l, int offset, int length)
Description copied from class:LongIndexer
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
- Specified by:
put
in classLongIndexer
-
-