|
Codemesh Runtime v3 C++ API Reference
3.9.205
|
An iterator type for Java array instances. More...
#include <xmog_java_array.h>
Public Types | |
| typedef ArrayType::difference_type | difference_type |
| The difference type used to represent two subtracted iterators. | |
| typedef ArrayType::value_type | value_type |
| The value type used when the iterator is dereferenced. More... | |
Public Member Functions | |
| xmog_array_iterator () | |
| The default constructor (required by iterator contract). | |
| xmog_array_iterator (const xmog_array_iterator< ArrayType > &rhs) | |
| The copy constructor (required by iterator contract). More... | |
| xmog_array_iterator (ArrayType &arr) | |
| The constructor that creates an iterator that is positioned on the first element of the array. More... | |
| xmog_array_iterator (ArrayType &arr, jint ind) | |
| The constructor that creates an iterator that is positioned on an arbitrary element of the array. More... | |
| ~xmog_array_iterator () | |
| The destructor. | |
| xmog_array_iterator< ArrayType > & | operator= (const xmog_array_iterator< ArrayType > &rhs) |
| The assignment operator (required by iterator contract). More... | |
| bool | operator< (const xmog_array_iterator< ArrayType > &rhs) const |
| bool | operator<= (const xmog_array_iterator< ArrayType > &rhs) const |
| bool | operator> (const xmog_array_iterator< ArrayType > &rhs) const |
| bool | operator>= (const xmog_array_iterator< ArrayType > &rhs) const |
| bool | operator== (const xmog_array_iterator< ArrayType > &rhs) const |
| bool | operator!= (const xmog_array_iterator< ArrayType > &rhs) const |
| xmog_array_iterator< ArrayType > | operator+ (difference_type diff) |
| xmog_array_iterator< ArrayType > & | operator+= (difference_type diff) |
| The additive assignment operator. | |
| xmog_array_iterator< ArrayType > | operator- (difference_type diff) |
| xmog_array_iterator< ArrayType > & | operator-= (difference_type diff) |
| The subtractive assignment operator. | |
| value_type | operator[] (jint ind) |
| The subscript operator returns the element that is 'ind' away from the current index position. | |
| value_type | operator* () |
| The dereference operator returns the element at the current index. | |
| xmog_array_iterator< ArrayType > & | operator++ () |
| The pre increment operator. | |
| xmog_array_iterator< ArrayType > | operator++ (int) |
| The post increment operator. | |
| xmog_array_iterator< ArrayType > & | operator-- () |
| The pre decrement operator. | |
| xmog_array_iterator< ArrayType > | operator-- (int) |
| The post decrement operator. | |
An iterator type for Java array instances.
This iterator supports the entire random_iterator contract and can be used in that fashion. Illegal indices will throw a Java proxy exception.
| typedef ArrayType::value_type xmog_array_iterator< ArrayType >::value_type |
The value type used when the iterator is dereferenced.
This type is derived from the array instance's value type.
|
inline |
The copy constructor (required by iterator contract).
| rhs | the other instance. |
|
inline |
The constructor that creates an iterator that is positioned on the first element of the array.
| arr | the array instance. |
|
inline |
The constructor that creates an iterator that is positioned on an arbitrary element of the array.
| arr | the array instance. |
| ind | the index into the array. -1 is interepreted as meaning after the last element of the array. |
|
inline |
The assignment operator (required by iterator contract).
| rhs | the other instance. |