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:
java.lang.AutoCloseable
public class CharArrayIndexer extends CharIndexer
An indexer for achar[]array.
-
-
Field Summary
Fields Modifier and Type Field Description protected char[]arrayThe backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.CharIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description CharArrayIndexer(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 thearrayandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]array()Returns the backing array, ornullif nonecharget(long i)Returnsarray/buffer[index(i)]charget(long... indices)Returnsarray/buffer[index(indices)]CharIndexerget(long[] indices, char[] c, int offset, int length)Returnsthiswherec[offset:offset + length] = array/buffer[index(indices)]CharIndexerget(long i, char[] c, int offset, int length)Returnsthiswherec[offset:offset + length] = array/buffer[index(i)]charget(long i, long j)Returnsarray/buffer[index(i, j)]CharIndexerget(long i, long j, char[] c, int offset, int length)Returnsthiswherec[offset:offset + length] = array/buffer[index(i, j)]charget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]CharIndexerput(long[] indices, char c)Returnsthiswherearray/buffer[index(indices)] = cCharIndexerput(long[] indices, char[] c, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = c[offset:offset + length]CharIndexerput(long i, char c)Returnsthiswherearray/buffer[index(i)] = cCharIndexerput(long i, char[] c, int offset, int length)Returnsthiswherearray/buffer[index(i)] = c[offset:offset + length]CharIndexerput(long i, long j, char c)Returnsthiswherearray/buffer[index(i, j)] = cCharIndexerput(long i, long j, char[] c, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = c[offset:offset + length]CharIndexerput(long i, long j, long k, char c)Returnsthiswherearray/buffer[index(i, j, k)] = cCharIndexerreindex(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.CharIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
-
-
-
Constructor Detail
-
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
public CharArrayIndexer(char[] array, Index index)Constructor to set thearrayandIndexer.index.
-
-
Method Detail
-
array
public char[] array()
Description copied from class:IndexerReturns the backing array, ornullif none
-
reindex
public CharIndexer reindex(Index index)
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index.
-
get
public char get(long i)
Description copied from class:CharIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classCharIndexer
-
get
public CharIndexer get(long i, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classCharIndexer
-
get
public char get(long i, long j)Description copied from class:CharIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classCharIndexer
-
get
public CharIndexer get(long i, long j, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classCharIndexer
-
get
public char get(long i, long j, long k)Description copied from class:CharIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classCharIndexer
-
get
public char get(long... indices)
Description copied from class:CharIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classCharIndexer
-
get
public CharIndexer get(long[] indices, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherec[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classCharIndexer
-
put
public CharIndexer put(long i, char c)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i)] = c- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long i, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long i, long j, char c)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j)] = c- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long i, long j, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long i, long j, long k, char c)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(i, j, k)] = c- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long[] indices, char c)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(indices)] = c- Specified by:
putin classCharIndexer
-
put
public CharIndexer put(long[] indices, char[] c, int offset, int length)
Description copied from class:CharIndexerReturnsthiswherearray/buffer[index(indices)] = c[offset:offset + length]- Specified by:
putin classCharIndexer
-
-