_Iterator Class Template Reference
[Utility Classes and Functions]

#include <support/List.h>

Inheritance diagram for _Iterator:

SAbstractList::AbstractIterator List of all members.

Detailed Description

template<class TYPE>
class _Iterator< TYPE >

A companion class to SList that provides iteration over typed list nodes.

Note:
Not for direct use; use SList<TYPE>::edit_iterator instead.
See also:
SAbstractList, SList


Public Types

typedef _Iterator< TYPE > self

Public Member Functions

 _Iterator (SAbstractList const *domain, SAbstractList::_ListNode *node)
 _Iterator (SAbstractList const *domain)
const TYPE & operator * (void) const
 Return the node at this point in the list.
TYPE & operator * (void)
 Access to the data stored in the list node as TYPE&.
const TYPE * operator-> (void) const
TYPE * operator-> (void)
 Access to the data stored in the list node as TYPE* (indirected once).
self operator++ (int)
 (returns the previous iterator value).
selfoperator++ (void)
 (returns the new iterator value).
self operator-- (int)
 (returns the previous iterator value).
selfoperator-- (void)
 (returns the new iterator value).


Member Typedef Documentation

typedef _Iterator<TYPE> self
 


Constructor & Destructor Documentation

_Iterator SAbstractList const *  domain  )  [inline]
 

_Iterator SAbstractList const *  domain,
SAbstractList::_ListNode node
[inline]
 


Member Function Documentation

const TYPE & operator * void   )  const [inline]
 

Return the node at this point in the list.

Reimplemented from SAbstractList::AbstractIterator.

TYPE & operator * void   )  [inline]
 

Access to the data stored in the list node as TYPE&.

_Iterator< TYPE > operator++ int   )  [inline]
 

(returns the previous iterator value).

Reimplemented from SAbstractList::AbstractIterator.

_Iterator< TYPE > & operator++ void   )  [inline]
 

(returns the new iterator value).

Reimplemented from SAbstractList::AbstractIterator.

_Iterator< TYPE > operator-- int   )  [inline]
 

(returns the previous iterator value).

Reimplemented from SAbstractList::AbstractIterator.

_Iterator< TYPE > & operator-- void   )  [inline]
 

(returns the new iterator value).

Reimplemented from SAbstractList::AbstractIterator.

const TYPE * operator-> void   )  const [inline]
 

TYPE * operator-> void   )  [inline]
 

Access to the data stored in the list node as TYPE* (indirected once).


The documentation for this class was generated from the following file: