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

RmLinkedList< Type >::const_iterator Class Reference

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

#include <RmLinkedList.h>

Inheritance diagram for RmLinkedList< Type >::const_iterator:

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

Public Member Functions

 const_iterator ()
 Constructor.

 const_iterator (const RmLinkedList< Type > *pParent, ItemNode *pItemNode)
 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 !=


Protected Attributes

const RmLinkedList< Type > * m_pParent
 Linkedlist that owns this iterator.

ItemNodem_pItemNode
 ItemNode ItemNode.


Detailed Description

template<class Type>
class RmLinkedList< 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>
RmLinkedList< Type >::const_iterator::const_iterator  )  [inline]
 

Constructor.

Constructor

template<class Type>
RmLinkedList< Type >::const_iterator::const_iterator const RmLinkedList< Type > *  pParent,
ItemNode pItemNode
[inline]
 

Constructor.

Constructor

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

Destructor.

Destructor


Member Function Documentation

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

Accessing actual item.

Access item by dereferencing iterator

Returns:
Type(templated) data

template<class Type>
bool RmLinkedList< 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 RmLinkedList< Type >::const_iterator::operator++ int   )  [inline]
 

Postfix++.

Increment operator to advance iterator

Returns:
Advanced iterator

Reimplemented in RmLinkedList< Type >::iterator.

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

Prefix++.

Increment operator to advance iterator

Returns:
Advanced iterator reference

Reimplemented in RmLinkedList< Type >::iterator.

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

Prefix--.

Decrement operator to move iterator backward

Returns:
Iterator moved backward

Reimplemented in RmLinkedList< Type >::iterator.

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

Prefix--.

Decrement operator to move iterator backward

Returns:
Iterator reference moved backward

Reimplemented in RmLinkedList< Type >::iterator.

template<class Type>
bool RmLinkedList< 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


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