CrystalSpace

Public API Reference

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

csArray< T, ElementHandler, MemoryAllocator >::Iterator Class Reference

Iterator for the Array object. More...

#include <csutil/array.h>

List of all members.

Public Member Functions

 Iterator (Iterator const &r)
 Copy constructor.
Iteratoroperator= (Iterator const &r)
 Assignment operator.
bool HasNext ()
 Returns true if the next Next() call will return an element.
const T & Next ()
 Returns the next element in the array.
void Reset ()
 Reset the array to the first element.


Detailed Description

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
class csArray< T, ElementHandler, MemoryAllocator >::Iterator

Iterator for the Array object.

Definition at line 960 of file array.h.


Constructor & Destructor Documentation

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
csArray< T, ElementHandler, MemoryAllocator >::Iterator::Iterator Iterator const &  r  )  [inline]
 

Copy constructor.

Definition at line 964 of file array.h.


Member Function Documentation

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
bool csArray< T, ElementHandler, MemoryAllocator >::Iterator::HasNext  )  [inline]
 

Returns true if the next Next() call will return an element.

Definition at line 972 of file array.h.

References csArray< T, ElementHandler, MemoryAllocator >::Length().

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
const T& csArray< T, ElementHandler, MemoryAllocator >::Iterator::Next  )  [inline]
 

Returns the next element in the array.

Definition at line 976 of file array.h.

References csArray< T, ElementHandler, MemoryAllocator >::Get().

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
Iterator& csArray< T, ElementHandler, MemoryAllocator >::Iterator::operator= Iterator const &  r  )  [inline]
 

Assignment operator.

Definition at line 968 of file array.h.

References csArray< T, ElementHandler, MemoryAllocator >::Iterator::array, and csArray< T, ElementHandler, MemoryAllocator >::Iterator::currentelem.

template<class T, class ElementHandler = csArrayElementHandler<T>, class MemoryAllocator = csArrayMemoryAllocator<T>>
void csArray< T, ElementHandler, MemoryAllocator >::Iterator::Reset  )  [inline]
 

Reset the array to the first element.

Definition at line 980 of file array.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1