cLinkedList::Iterator Class Reference

Walks along a cLinkedList object. More...

#include <clinkedlist.h>

List of all members.

Public Member Functions

 Iterator (const cLinkedList &q, bool athead=true)
void init (const cLinkedList &q, bool athead=true)
void * operator() () const
bool end () const
void * operator++ (int)
void * operator-- (int)

Detailed Description

Walks along a cLinkedList object.

To examine each element in the list, the Iterator class can be used. Once an Iterator object is created for the list, the ++ and -- operators can be used to step from one element of the list to the next/previous one.


Constructor & Destructor Documentation

cLinkedList::Iterator::Iterator ( const cLinkedList q,
bool  athead = true 
) [inline]

Constructor.

Takes the cLinkedList object as argument. The current item will be the first (if athead==true, default) or the last (if athead==false) item in the list.


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 17:19:40 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3