Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

xmog_java_array_size Class Reference
[Arrays]

The proxy type representing the length of an array. More...

#include <xmog_java_array.h>

Collaboration diagram for xmog_java_array_size:

Collaboration graph
[legend]
List of all members.

Public Member Functions

XMOG_EXPLICIT xmog_java_array_size (xmog_java_array *owner, jint size=-1)
 The constructor taking an optional array length as input.
 operator jint () const
 A conversion operator to jint.
jint to_jint (xmog_localenv *env) const
 A higher performance alternative to the jint conversion operator.

Friends

class xmog_java_array

Detailed Description

The proxy type representing the length of an array.

This type is only used to represent length fields of proxy arrays.


Constructor & Destructor Documentation

XMOG_EXPLICIT xmog_java_array_size::xmog_java_array_size xmog_java_array owner,
jint  size = -1
 

The constructor taking an optional array length as input.

Parameters:
owner the array instance that owns the field.
size the array length. The default value is -1, which means that we don't have a pre-cached value for the array length.


Member Function Documentation

xmog_java_array_size::operator jint  )  const
 

A conversion operator to jint.

This function allows the length field to be used anywhere where a jint is expected.

jint xmog_java_array_size::to_jint xmog_localenv env  )  const
 

A higher performance alternative to the jint conversion operator.

This function is synonymous to operator jint(), but it takes a local call environment as an argument.

Parameters:
env the local environment used in this call. This value may be NULL.


The documentation for this class was generated from the following file:
Generated on Wed May 31 14:01:25 2006 for Shared Codemesh Runtime Library API Reference by  doxygen 1.4.1