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 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 thearrayandIndexer.index. -
Method Summary
Modifier and TypeMethodDescriptionboolean[]array()Returns the backing array, ornullif nonebooleanget(long i) Returnsarray/buffer[index(i)]booleanget(long... indices) Returnsarray/buffer[index(indices)]get(long[] indices, boolean[] b, int offset, int length) Returnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]get(long i, boolean[] b, int offset, int length) Returnsthiswhereb[offset:offset + length] = array/buffer[index(i)]booleanget(long i, long j) Returnsarray/buffer[index(i, j)]get(long i, long j, boolean[] b, int offset, int length) Returnsthiswhereb[offset:offset + length] = array/buffer[index(i, j)]booleanget(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]put(long[] indices, boolean b) Returnsthiswherearray/buffer[index(indices)] = bput(long[] indices, boolean[] b, int offset, int length) Returnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]put(long i, boolean b) Returnsthiswherearray/buffer[index(i)] = bput(long i, boolean[] b, int offset, int length) Returnsthiswherearray/buffer[index(i)] = b[offset:offset + length]put(long i, long j, boolean b) Returnsthiswherearray/buffer[index(i, j)] = bput(long i, long j, boolean[] b, int offset, int length) Returnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]put(long i, long j, long k, boolean b) Returnsthiswherearray/buffer[index(i, j, k)] = bReturns 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 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 thearrayandIndexer.index.
-
-
Method Details
-
array
-
reindex
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index. -
get
public boolean get(long i) Description copied from class:BooleanIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classBooleanIndexer
-
get
Description copied from class:BooleanIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classBooleanIndexer
-
get
public boolean get(long i, long j) Description copied from class:BooleanIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classBooleanIndexer
-
get
Description copied from class:BooleanIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classBooleanIndexer
-
get
public boolean get(long i, long j, long k) Description copied from class:BooleanIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classBooleanIndexer
-
get
public boolean get(long... indices) Description copied from class:BooleanIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classBooleanIndexer
-
get
Description copied from class:BooleanIndexerReturnsthiswhereb[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(i)] = b- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(i)] = b[offset:offset + length]- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(i, j)] = b- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(i, j)] = b[offset:offset + length]- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(i, j, k)] = b- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(indices)] = b- Specified by:
putin classBooleanIndexer
-
put
Description copied from class:BooleanIndexerReturnsthiswherearray/buffer[index(indices)] = b[offset:offset + length]- Specified by:
putin classBooleanIndexer
-
release
-