public abstract class CharIndexer extends Indexer
char primitive type.| Modifier and Type | Field and Description |
|---|---|
static int |
VALUE_BYTES
The number of bytes used to represent a char.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CharIndexer(Index index) |
protected |
CharIndexer(long[] sizes,
long[] strides) |
| Modifier and Type | Method and Description |
|---|---|
static CharIndexer |
create(char[] array)
Returns
new CharArrayIndexer(array) |
static CharIndexer |
create(char[] array,
Index index)
Returns
new CharArrayIndexer(array, index) |
static CharIndexer |
create(char[] array,
long... sizes)
Returns
new CharArrayIndexer(array, sizes) |
static CharIndexer |
create(char[] array,
long[] sizes,
long[] strides)
Returns
new CharArrayIndexer(array, sizes, strides) |
static CharIndexer |
create(CharBuffer buffer)
Returns
new CharBufferIndexer(buffer) |
static CharIndexer |
create(CharBuffer buffer,
Index index)
Returns
new CharBufferIndexer(buffer, index) |
static CharIndexer |
create(CharBuffer buffer,
long... sizes)
Returns
new CharBufferIndexer(buffer, sizes) |
static CharIndexer |
create(CharBuffer buffer,
long[] sizes,
long[] strides)
Returns
new CharBufferIndexer(buffer, sizes, strides) |
static CharIndexer |
create(CharPointer pointer)
Returns
new CharRawIndexer(pointer) |
static CharIndexer |
create(CharPointer pointer,
Index index)
Returns
new CharRawIndexer(pointer, index) |
static CharIndexer |
create(CharPointer pointer,
Index index,
boolean direct)
Creates a char indexer to access efficiently the data of a pointer.
|
static CharIndexer |
create(CharPointer pointer,
long... sizes)
Returns
new CharRawIndexer(pointer, sizes) |
static CharIndexer |
create(CharPointer pointer,
long[] sizes,
long[] strides)
Returns
new CharRawIndexer(pointer, sizes, strides) |
static CharIndexer |
create(CharPointer pointer,
long[] sizes,
long[] strides,
boolean direct)
Returns
create(pointer, Index.create(sizes, strides), direct) |
abstract char |
get(long... indices)
Returns
array/buffer[index(indices)] |
abstract char |
get(long i)
Returns
array/buffer[index(i)] |
CharIndexer |
get(long[] indices,
char[] c)
Returns
this where c = array/buffer[index(indices)] |
abstract CharIndexer |
get(long[] indices,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(indices)] |
CharIndexer |
get(long i,
char[] c)
Returns
this where c = array/buffer[index(i)] |
abstract CharIndexer |
get(long i,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(i)] |
abstract char |
get(long i,
long j)
Returns
array/buffer[index(i, j)] |
CharIndexer |
get(long i,
long j,
char[] c)
Returns
this where c = array/buffer[index(i, j)] |
abstract CharIndexer |
get(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where c[offset:offset + length] = array/buffer[index(i, j)] |
abstract char |
get(long i,
long j,
long k)
Returns
array/buffer[index(i, j, k)] |
double |
getDouble(long... indices)
Calls
get(int...indices) and returns the value as a double. |
CharIndexer |
put(long[] indices,
char... c)
Returns
this where array/buffer[index(indices)] = c |
abstract CharIndexer |
put(long[] indices,
char c)
Returns
this where array/buffer[index(indices)] = c |
abstract CharIndexer |
put(long[] indices,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(indices)] = c[offset:offset + length] |
CharIndexer |
put(long i,
char... c)
Returns
this where array/buffer[index(i)] = c |
abstract CharIndexer |
put(long i,
char c)
Returns
this where array/buffer[index(i)] = c |
abstract CharIndexer |
put(long i,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(i)] = c[offset:offset + length] |
CharIndexer |
put(long i,
long j,
char... c)
Returns
this where array/buffer[index(i, j)] = c |
abstract CharIndexer |
put(long i,
long j,
char c)
Returns
this where array/buffer[index(i, j)] = c |
abstract CharIndexer |
put(long i,
long j,
char[] c,
int offset,
int length)
Returns
this where array/buffer[index(i, j)] = c[offset:offset + length] |
abstract CharIndexer |
put(long i,
long j,
long k,
char c)
Returns
this where array/buffer[index(i, j, k)] = c |
CharIndexer |
putDouble(long[] indices,
double c)
Casts value to primitive type and calls
put(long[] indices, <type> value). |
public static final int VALUE_BYTES
protected CharIndexer(Index index)
protected CharIndexer(long[] sizes,
long[] strides)
public static CharIndexer create(char[] array)
new CharArrayIndexer(array)public static CharIndexer create(CharBuffer buffer)
new CharBufferIndexer(buffer)public static CharIndexer create(CharPointer pointer)
new CharRawIndexer(pointer)public static CharIndexer create(char[] array, Index index)
new CharArrayIndexer(array, index)public static CharIndexer create(CharBuffer buffer, Index index)
new CharBufferIndexer(buffer, index)public static CharIndexer create(CharPointer pointer, Index index)
new CharRawIndexer(pointer, index)public static CharIndexer create(char[] array, long... sizes)
new CharArrayIndexer(array, sizes)public static CharIndexer create(CharBuffer buffer, long... sizes)
new CharBufferIndexer(buffer, sizes)public static CharIndexer create(CharPointer pointer, long... sizes)
new CharRawIndexer(pointer, sizes)public static CharIndexer create(char[] array, long[] sizes, long[] strides)
new CharArrayIndexer(array, sizes, strides)public static CharIndexer create(CharBuffer buffer, long[] sizes, long[] strides)
new CharBufferIndexer(buffer, sizes, strides)public static CharIndexer create(CharPointer pointer, long[] sizes, long[] strides)
new CharRawIndexer(pointer, sizes, strides)public static CharIndexer create(CharPointer pointer, long[] sizes, long[] strides, boolean direct)
create(pointer, Index.create(sizes, strides), direct)public static CharIndexer create(CharPointer pointer, Index index, boolean direct)
pointer - data to access via a buffer or to copy to an arrayindex - to usedirect - true to use a direct buffer, see Indexer for detailspublic abstract char get(long i)
array/buffer[index(i)]public CharIndexer get(long i, char[] c)
this where c = array/buffer[index(i)]public abstract CharIndexer get(long i, char[] c, int offset, int length)
this where c[offset:offset + length] = array/buffer[index(i)]public abstract char get(long i,
long j)
array/buffer[index(i, j)]public CharIndexer get(long i, long j, char[] c)
this where c = array/buffer[index(i, j)]public abstract CharIndexer get(long i, long j, char[] c, int offset, int length)
this where c[offset:offset + length] = array/buffer[index(i, j)]public abstract char get(long i,
long j,
long k)
array/buffer[index(i, j, k)]public abstract char get(long... indices)
array/buffer[index(indices)]public CharIndexer get(long[] indices, char[] c)
this where c = array/buffer[index(indices)]public abstract CharIndexer get(long[] indices, char[] c, int offset, int length)
this where c[offset:offset + length] = array/buffer[index(indices)]public abstract CharIndexer put(long i, char c)
this where array/buffer[index(i)] = cpublic CharIndexer put(long i, char... c)
this where array/buffer[index(i)] = cpublic abstract CharIndexer put(long i, char[] c, int offset, int length)
this where array/buffer[index(i)] = c[offset:offset + length]public abstract CharIndexer put(long i, long j, char c)
this where array/buffer[index(i, j)] = cpublic CharIndexer put(long i, long j, char... c)
this where array/buffer[index(i, j)] = cpublic abstract CharIndexer put(long i, long j, char[] c, int offset, int length)
this where array/buffer[index(i, j)] = c[offset:offset + length]public abstract CharIndexer put(long i, long j, long k, char c)
this where array/buffer[index(i, j, k)] = cpublic abstract CharIndexer put(long[] indices, char c)
this where array/buffer[index(indices)] = cpublic CharIndexer put(long[] indices, char... c)
this where array/buffer[index(indices)] = cpublic abstract CharIndexer put(long[] indices, char[] c, int offset, int length)
this where array/buffer[index(indices)] = c[offset:offset + length]public double getDouble(long... indices)
Indexerget(int...indices) and returns the value as a double.public CharIndexer putDouble(long[] indices, double c)
Indexerput(long[] indices, <type> value).Copyright © 2020. All rights reserved.