CACAO
Public Member Functions | Protected Member Functions
ArrayTemplate< T > Class Template Referenceabstract

This is a template of an accessor class for Java arrays of a specific type. More...

Inheritance diagram for ArrayTemplate< T >:
Array

Public Member Functions

 ArrayTemplate (java_handle_array_t *h)
 
virtual T * get_raw_data_ptr ()=0
 
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)
 
- Public Member Functions inherited from Array
 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_tget_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_tget_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

- Protected Attributes inherited from Array
java_handle_array_t_handle
 

Detailed Description

template<class T>
class ArrayTemplate< T >

This is a template of an accessor class for Java arrays of a specific type.

Definition at line 218 of file array.hpp.

Constructor & Destructor Documentation

template<class T>
ArrayTemplate< T >::ArrayTemplate ( int32_t  length,
classinfo arrayclass 
)
inlineprotected

Definition at line 220 of file array.hpp.

template<class T>
ArrayTemplate< T >::ArrayTemplate ( java_handle_array_t h)
inline

Definition at line 223 of file array.hpp.

Member Function Documentation

template<class T >
T ArrayTemplate< T >::get_element ( int32_t  index)
inline

Definition at line 238 of file array.hpp.

template<class T>
virtual T* ArrayTemplate< T >::get_raw_data_ptr ( )
pure virtual
template<class T>
void ArrayTemplate< T >::get_region ( int32_t  offset,
int32_t  count,
T *  buffer 
)
inline

Definition at line 298 of file array.hpp.

template<class T>
void ArrayTemplate< T >::set_element ( int32_t  index,
value 
)
inline

Definition at line 255 of file array.hpp.

template<class T>
void ArrayTemplate< T >::set_region ( int32_t  offset,
int32_t  count,
const T *  buffer 
)
inline

Definition at line 308 of file array.hpp.


The documentation for this class was generated from the following file: