Package org.bytedeco.javacpp.indexer
Class CharArrayIndexer
java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.CharIndexer
org.bytedeco.javacpp.indexer.CharArrayIndexer
- All Implemented Interfaces:
AutoCloseable
An indexer for a
char[]
array.-
Field Summary
FieldsFields inherited from class org.bytedeco.javacpp.indexer.CharIndexer
VALUE_BYTES
-
Constructor Summary
ConstructorsConstructorDescriptionCharArrayIndexer
(char[] array) CallsCharArrayIndexer(array, Index.create(array.length))
.CharArrayIndexer
(char[] array, long... sizes) CallsCharArrayIndexer(array, Index.create(sizes))
.CharArrayIndexer
(char[] array, long[] sizes, long[] strides) CallsCharArrayIndexer(array, Index.create(sizes, strides))
.CharArrayIndexer
(char[] array, Index index) Constructor to set thearray
andIndexer.index
. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
array()
Returns the backing array, ornull
if nonechar
get
(long i) Returnsarray/buffer[index(i)]
char
get
(long... indices) Returnsarray/buffer[index(indices)]
get
(long[] indices, char[] c, int offset, int length) Returnsthis
wherec[offset:offset + length] = array/buffer[index(indices)]
get
(long i, char[] c, int offset, int length) Returnsthis
wherec[offset:offset + length] = array/buffer[index(i)]
char
get
(long i, long j) Returnsarray/buffer[index(i, j)]
get
(long i, long j, char[] c, int offset, int length) Returnsthis
wherec[offset:offset + length] = array/buffer[index(i, j)]
char
get
(long i, long j, long k) Returnsarray/buffer[index(i, j, k)]
put
(long[] indices, char c) Returnsthis
wherearray/buffer[index(indices)] = c
put
(long[] indices, char[] c, int offset, int length) Returnsthis
wherearray/buffer[index(indices)] = c[offset:offset + length]
put
(long i, char c) Returnsthis
wherearray/buffer[index(i)] = c
put
(long i, char[] c, int offset, int length) Returnsthis
wherearray/buffer[index(i)] = c[offset:offset + length]
put
(long i, long j, char c) Returnsthis
wherearray/buffer[index(i, j)] = c
put
(long i, long j, char[] c, int offset, int length) Returnsthis
wherearray/buffer[index(i, j)] = c[offset:offset + length]
put
(long i, long j, long k, char c) Returnsthis
wherearray/buffer[index(i, j, k)] = c
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.CharIndexer
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 char[] arrayThe backing array.
-
-
Constructor Details
-
CharArrayIndexer
public CharArrayIndexer(char[] array) CallsCharArrayIndexer(array, Index.create(array.length))
. -
CharArrayIndexer
public CharArrayIndexer(char[] array, long... sizes) CallsCharArrayIndexer(array, Index.create(sizes))
. -
CharArrayIndexer
public CharArrayIndexer(char[] array, long[] sizes, long[] strides) CallsCharArrayIndexer(array, Index.create(sizes, strides))
. -
CharArrayIndexer
Constructor to set thearray
andIndexer.index
.
-
-
Method Details
-
array
public char[] 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 char get(long i) Description copied from class:CharIndexer
Returnsarray/buffer[index(i)]
- Specified by:
get
in classCharIndexer
-
get
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long i, long j) Description copied from class:CharIndexer
Returnsarray/buffer[index(i, j)]
- Specified by:
get
in classCharIndexer
-
get
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(i, j)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long i, long j, long k) Description copied from class:CharIndexer
Returnsarray/buffer[index(i, j, k)]
- Specified by:
get
in classCharIndexer
-
get
public char get(long... indices) Description copied from class:CharIndexer
Returnsarray/buffer[index(indices)]
- Specified by:
get
in classCharIndexer
-
get
Description copied from class:CharIndexer
Returnsthis
wherec[offset:offset + length] = array/buffer[index(indices)]
- Specified by:
get
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i)] = c
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j)] = c
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(i, j, k)] = c
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(indices)] = c
- Specified by:
put
in classCharIndexer
-
put
Description copied from class:CharIndexer
Returnsthis
wherearray/buffer[index(indices)] = c[offset:offset + length]
- Specified by:
put
in classCharIndexer
-
release
public void release()Description copied from class:Indexer
Makes sure changes are reflected onto the backing memory and clears any references.
-