CACAO
|
This is a template of an accessor class for Java arrays of a specific type. More...
Public Member Functions | |
ArrayTemplate (java_handle_array_t *h) | |
virtual T * | get_raw_data_ptr ()=0 |
T | get_element (int32_t index) |
void | set_element (int32_t index, T value) |
void | get_region (int32_t offset, int32_t count, T *buffer) |
void | set_region (int32_t offset, int32_t count, const T *buffer) |
![]() | |
Array (java_handle_t *h) | |
Constructor checks if passed handle really is a Java array. More... | |
Array (int32_t length, classinfo *arrayclass) | |
Creates an array of the given array type on the heap. More... | |
virtual | ~Array () |
virtual java_handle_array_t * | get_handle () const |
int32_t | get_length () const |
bool | is_null () const |
bool | is_non_null () const |
imm_union | get_primitive_element (int32_t index) |
Returns a primitive element of the given Java array. More... | |
void | set_primitive_element (int32_t index, imm_union value) |
Sets a primitive element in the given Java array. More... | |
java_handle_t * | get_boxed_element (int32_t index) |
Returns a boxed element of the given Java array. More... | |
void | set_boxed_element (int32_t index, java_handle_t *o) |
Sets a boxed element in the given Java array. More... | |
Protected Member Functions | |
ArrayTemplate (int32_t length, classinfo *arrayclass) | |
Additional Inherited Members | |
![]() | |
java_handle_array_t * | _handle |
This is a template of an accessor class for Java arrays of a specific type.
|
inlineprotected |
|
inline |
|
inline |
|
pure virtual |
Implemented in ClassArray, ObjectArray, DoubleArray, FloatArray, LongArray, IntArray, ShortArray, CharArray, ByteArray, and BooleanArray.
|
inline |
|
inline |
|
inline |