Package org.bytedeco.javacpp.indexer
Class LongArrayIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.LongIndexer
-
- org.bytedeco.javacpp.indexer.LongArrayIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class LongArrayIndexer extends LongIndexer
An indexer for along[]array.
-
-
Field Summary
Fields Modifier and Type Field Description protected long[]arrayThe backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.LongIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description LongArrayIndexer(long[] array)CallsLongArrayIndexer(array, Index.create(array.length)).LongArrayIndexer(long[] array, long... sizes)CallsLongArrayIndexer(array, Index.create(sizes)).LongArrayIndexer(long[] array, long[] sizes, long[] strides)CallsLongArrayIndexer(array, Index.create(sizes, strides)).LongArrayIndexer(long[] array, Index index)Constructor to set thearrayandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]array()Returns the backing array, ornullif nonelongget(long i)Returnsarray/buffer[index(i)]longget(long... indices)Returnsarray/buffer[index(indices)]LongIndexerget(long[] indices, long[] l, int offset, int length)Returnsthiswherel[offset:offset + length] = array/buffer[index(indices)]longget(long i, long j)Returnsarray/buffer[index(i, j)]LongIndexerget(long i, long[] l, int offset, int length)Returnsthiswherel[offset:offset + length] = array/buffer[index(i)]longget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]LongIndexerget(long i, long j, long[] l, int offset, int length)Returnsthiswherel[offset:offset + length] = array/buffer[index(i, j)]LongIndexerput(long[] indices, long l)Returnsthiswherearray/buffer[index(indices)] = lLongIndexerput(long[] indices, long[] l, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = l[offset:offset + length]LongIndexerput(long i, long l)Returnsthiswherearray/buffer[index(i)] = lLongIndexerput(long i, long[] l, int offset, int length)Returnsthiswherearray/buffer[index(i)] = l[offset:offset + length]LongIndexerput(long i, long j, long l)Returnsthiswherearray/buffer[index(i, j)] = lLongIndexerput(long i, long j, long[] l, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = l[offset:offset + length]LongIndexerput(long i, long j, long k, long l)Returnsthiswherearray/buffer[index(i, j, k)] = lLongIndexerreindex(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.LongIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
-
-
-
Constructor Detail
-
LongArrayIndexer
public LongArrayIndexer(long[] array)
CallsLongArrayIndexer(array, Index.create(array.length)).
-
LongArrayIndexer
public LongArrayIndexer(long[] array, long... sizes)CallsLongArrayIndexer(array, Index.create(sizes)).
-
LongArrayIndexer
public LongArrayIndexer(long[] array, long[] sizes, long[] strides)CallsLongArrayIndexer(array, Index.create(sizes, strides)).
-
LongArrayIndexer
public LongArrayIndexer(long[] array, Index index)Constructor to set thearrayandIndexer.index.
-
-
Method Detail
-
array
public long[] array()
Description copied from class:IndexerReturns the backing array, ornullif none
-
reindex
public LongIndexer 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:LongIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classLongIndexer
-
get
public LongIndexer get(long i, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classLongIndexer
-
get
public long get(long i, long j)Description copied from class:LongIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classLongIndexer
-
get
public LongIndexer get(long i, long j, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classLongIndexer
-
get
public long get(long i, long j, long k)Description copied from class:LongIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classLongIndexer
-
get
public long get(long... indices)
Description copied from class:LongIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classLongIndexer
-
get
public LongIndexer get(long[] indices, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherel[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classLongIndexer
-
put
public LongIndexer put(long i, long l)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i)] = l- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long i, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long i, long j, long l)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j)] = l- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long i, long j, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long i, long j, long k, long l)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(i, j, k)] = l- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long[] indices, long l)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(indices)] = l- Specified by:
putin classLongIndexer
-
put
public LongIndexer put(long[] indices, long[] l, int offset, int length)
Description copied from class:LongIndexerReturnsthiswherearray/buffer[index(indices)] = l[offset:offset + length]- Specified by:
putin classLongIndexer
-
-