Om
1.0.0
A universal framework for multimedia simulation
|
An iterator class for an array list which can't modify it. More...
#include <omArrayList.h>
Public Member Functions | |
ConstIterator (const ArrayList &newList) | |
Create a new ArrayList iterator from a reference to a list. More... | |
ConstIterator (const Iterator &iterator) | |
Create a new const array list iterator from a non-const iterator. More... | |
void | operator++ () |
Prefix increment operator. More... | |
void | operator++ (int) |
Postfix increment operator. More... | |
operator Bool () const | |
Return whether or not the iterator is at the end of the list. More... | |
const T & | operator* () const |
Return a const-reference to the current iterator element. More... | |
const T * | operator-> () const |
Access the current iterator element. More... | |
void | reset () |
Reset the iterator to the beginning of the list. More... | |
SizeType | getIndex () const |
Return the index of the next element to be iterated over. More... | |
An iterator class for an array list which can't modify it.
The purpose of this class is to iterate through all or some of the elements in the array list.
|
inline |
Create a new ArrayList iterator from a reference to a list.
|
inline |
Create a new const array list iterator from a non-const iterator.
|
inline |
Prefix increment operator.
|
inline |
Postfix increment operator.
|
inline |
Return whether or not the iterator is at the end of the list.
If the iterator is at the end of the list, return FALSE. Otherwise, return TRUE, indicating that there are more elements to iterate over.
|
inline |
Return a const-reference to the current iterator element.
|
inline |
Access the current iterator element.
|
inline |
Reset the iterator to the beginning of the list.
|
inline |
Return the index of the next element to be iterated over.