Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RmArray< Type >::const_iterator Class Reference

Constant iterator (contents not modifiable ). More...

#include <RmArray.h>

Inheritance diagram for RmArray< Type >::const_iterator:

RmArray< Type >::iterator List of all members.

Public Member Functions

 const_iterator ()
 Constructor.

 const_iterator (RmArray *pArray, int nIndex)
 Constructor.

 ~const_iterator ()
 Destructor.

const_iteratoroperator++ ()
 Prefix++.

const_iterator operator++ (int)
 Postfix++.

const_iteratoroperator-- ()
 Prefix--.

const_iterator operator-- (int)
 Prefix--.

const Type & operator * () const
 Accessing actual item.

bool operator== (const const_iterator &src)
 opreator ==

bool operator!= (const const_iterator &src)
 opreator !=

bool operator> (const const_iterator &src)
 opreator >

bool operator< (const const_iterator &src)
 opreator <

bool operator>= (const const_iterator &src)
 opreator >=

bool operator<= (const const_iterator &src)
 opreator <=


Protected Attributes

RmArraym_pArray
 Array f items.

int m_index
 Current item index.


Detailed Description

template<class Type>
class RmArray< Type >::const_iterator

Constant iterator (contents not modifiable ).

Constant iterator for this array class. begin() returns the beginning iterator and ++ operator of iterator will advance iterator by 1. Similarly -- operator will move backward by 1.


Constructor & Destructor Documentation

template<class Type>
RmArray< Type >::const_iterator::const_iterator  )  [inline]
 

Constructor.

Constructor

template<class Type>
RmArray< Type >::const_iterator::const_iterator RmArray pArray,
int  nIndex
[inline]
 

Constructor.

Constructor

template<class Type>
RmArray< Type >::const_iterator::~const_iterator  )  [inline]
 

Destructor.

Destructor


Member Function Documentation

template<class Type>
const Type& RmArray< Type >::const_iterator::operator *  )  const [inline]
 

Accessing actual item.

Access item by dereferencing iterator

Returns:
Type(templated) data

template<class Type>
bool RmArray< Type >::const_iterator::operator!= const const_iterator src  )  [inline]
 

opreator !=

Equality operator

Parameters:
src Source iterator to compare to
Returns:
True if two iterators are NOT equal, False otherwise

template<class Type>
const_iterator RmArray< Type >::const_iterator::operator++ int   )  [inline]
 

Postfix++.

Increment operator to advance iterator

Returns:
Advanced iterator

Reimplemented in RmArray< Type >::iterator.

template<class Type>
const_iterator& RmArray< Type >::const_iterator::operator++  )  [inline]
 

Prefix++.

Increment operator to advance iterator

Returns:
Advanced iterator reference

Reimplemented in RmArray< Type >::iterator.

template<class Type>
const_iterator RmArray< Type >::const_iterator::operator-- int   )  [inline]
 

Prefix--.

Decrement operator to move iterator backward

Returns:
Iterator moved backward

Reimplemented in RmArray< Type >::iterator.

template<class Type>
const_iterator& RmArray< Type >::const_iterator::operator--  )  [inline]
 

Prefix--.

Decrement operator to move iterator backward

Returns:
Iterator reference moved backward

Reimplemented in RmArray< Type >::iterator.

template<class Type>
bool RmArray< Type >::const_iterator::operator< const const_iterator src  )  [inline]
 

opreator <

Less operator

Parameters:
src Source iterator to compare to
Returns:
True if this iterator is less than source, False otherwise

template<class Type>
bool RmArray< Type >::const_iterator::operator<= const const_iterator src  )  [inline]
 

opreator <=

Less equal operator

Parameters:
src Source iterator to compare to
Returns:
True if this iterator is less than or equal to source, False otherwise

template<class Type>
bool RmArray< Type >::const_iterator::operator== const const_iterator src  )  [inline]
 

opreator ==

Equality operator

Parameters:
src Source iterator to compare to
Returns:
True if two iterators are equal, False otherwise

template<class Type>
bool RmArray< Type >::const_iterator::operator> const const_iterator src  )  [inline]
 

opreator >

Greater operator

Parameters:
src Source iterator to compare to
Returns:
True if this iterator is greater than source, False otherwise

template<class Type>
bool RmArray< Type >::const_iterator::operator>= const const_iterator src  )  [inline]
 

opreator >=

Greater equal operator

Parameters:
src Source iterator to compare to
Returns:
True if this iterator is greater than or equal to source, False otherwise


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 16:08:53 2005 for RenderMonkey SDK by doxygen 1.3.6