Package org.bytedeco.javacpp.indexer
Class BooleanArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.BooleanIndexer
org.bytedeco.javacpp.indexer.BooleanArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
boolean[]
array.-
Field Summary
FieldsFields inherited from class org.bytedeco.javacpp.indexer.BooleanIndexer
VALUE_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanArrayIndexer
(boolean[] array) CallsBooleanArrayIndexer(array, Index.create(array.length))
.BooleanArrayIndexer
(boolean[] array, long... sizes) CallsBooleanArrayIndexer(array, Index.create(sizes))
.BooleanArrayIndexer
(boolean[] array, long[] sizes, long[] strides) CallsBooleanArrayIndexer(array, Index.create(sizes, strides))
.BooleanArrayIndexer
(boolean[] array, Index index) Constructor to set thearray
andIndexer.index
. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
array()
Returns the backing array, ornull
if noneboolean
get
(long i) Returnsarray/buffer[index(i)]
boolean
get
(long... indices) Returnsarray/buffer[index(indices)]
get
(long[] indices, boolean[] b, int offset, int length) Returnsthis
whereb[offset:offset + length] = array/buffer[index(indices)]
get
(long i, boolean[] b, int offset, int length) Returnsthis
whereb[offset:offset + length] = array/buffer[index(i)]
boolean
get
(long i, long j) Returnsarray/buffer[index(i, j)]
get
(long i, long j, boolean[] b, int offset, int length) Returnsthis
whereb[offset:offset + length] = array/buffer[index(i, j)]
boolean
get
(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]
put
(long[] indices, boolean b) Returnsthis
wherearray/buffer[index(indices)] = b
put
(long[] indices, boolean[] b, int offset, int length) Returnsthis
wherearray/buffer[index(indices)] = b[offset:offset + length]
put
(long i, boolean b) Returnsthis
wherearray/buffer[index(i)] = b
put
(long i, boolean[] b, int offset, int length) Returnsthis
wherearray/buffer[index(i)] = b[offset:offset + length]
put
(long i, long j, boolean b) Returnsthis
wherearray/buffer[index(i, j)] = b
put
(long i, long j, boolean[] b, int offset, int length) Returnsthis
wherearray/buffer[index(i, j)] = b[offset:offset + length]
put
(long i, long j, long k, boolean b) Returnsthis
wherearray/buffer[index(i, j, k)] = b
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.BooleanIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
Field Details
-
array
protected boolean[] arrayThe backing array.
-
-
Constructor Details
-
BooleanArrayIndexer
public BooleanArrayIndexer(boolean[] array) CallsBooleanArrayIndexer(array, Index.create(array.length))
. -
BooleanArrayIndexer
public BooleanArrayIndexer(boolean[] array, long... sizes) CallsBooleanArrayIndexer(array, Index.create(sizes))
. -
BooleanArrayIndexer
public BooleanArrayIndexer(boolean[] array, long[] sizes, long[] strides) CallsBooleanArrayIndexer(array, Index.create(sizes, strides))
. -
BooleanArrayIndexer
Constructor to set thearray
andIndexer.index
.
-
-
Method Details
-
array
public boolean[] array()Description copied from class:Indexer
Returns the backing array, ornull
if none -
reindex
Description copied from class:Indexer
Returns a new Indexer using the same data, but with a different Index. -
get
public boolean get(long i) Description copied from class:BooleanIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classBooleanIndexer
-
get
Description copied from class:BooleanIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classBooleanIndexer
-
get
public boolean get(long i, long j) Description copied from class:BooleanIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classBooleanIndexer
-
get
Description copied from class:BooleanIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classBooleanIndexer
-
get
public boolean get(long i, long j, long k) Description copied from class:BooleanIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classBooleanIndexer
-
get
public boolean get(long... indices) Description copied from class:BooleanIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classBooleanIndexer
-
get
Description copied from class:BooleanIndexer
Returnsthis
whereb[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(i)] = b
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(i)] = b[offset:offset + length]
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(i, j)] = b
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(i, j)] = b[offset:offset + length]
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = b
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(indices)] = b
- Specified by:
put
in classBooleanIndexer
-
put
Description copied from class:BooleanIndexer
Returnsthis
wherearray/buffer[index(indices)] = b[offset:offset + length]
- Specified by:
put
in classBooleanIndexer
-
release
public void release()Description copied from class:Indexer
Makes sure changes are reflected onto the backing memory and clears any references.
-