csList< T >::Iterator Class Reference
Iterator for the list. More...
#include <list.h>
Public Methods | |
Iterator () | |
Constructor. | |
Iterator (const Iterator &other) | |
Copy Constructor. | |
Iterator (const csList< T > &list, bool reverse=false) | |
Another Copy Constructor. | |
const Iterator & | operator= (const Iterator &other) |
Assignment operator. | |
bool | HasCurrent () const |
Test if the Iterator is set to a valid element. | |
bool | HasNext () const |
Test if there is a next element. | |
bool | HasPrevious () const |
Test if there is a previous element. | |
bool | IsFirst () const |
Test if the Iterator is set to the first element. | |
bool | IsLast () const |
Test if the Iterator is set to the last element. | |
bool | IsReverse () const |
Test if the iterator is reversed. | |
operator T * () const | |
Cast operator. | |
T & | operator * () const |
Dereference operator (*). | |
T * | operator-> () const |
Dereference operator (->). | |
void | Clear () |
Set iterator to non-existent element. HasCurrent() will return false. | |
T * | Next () |
Advance to next element and return it. | |
T * | Prev () |
Backup to previous element and return it. | |
Iterator & | operator++ () |
Advance to next element and return it. | |
Iterator & | operator-- () |
Backup to previous element and return it. |
Detailed Description
template<class T>
class csList< T >::Iterator
Iterator for the list.
Definition at line 71 of file list.h.
Constructor & Destructor Documentation
|
Constructor.
|
|
Copy Constructor.
Definition at line 78 of file list.h. References csList< T >::Iterator::ptr. |
|
Another Copy Constructor.
Definition at line 81 of file list.h. References csList< T >::head, and csList< T >::tail. |
Member Function Documentation
|
Set iterator to non-existent element. HasCurrent() will return false.
|
|
Test if the Iterator is set to a valid element.
|
|
Test if there is a next element.
Definition at line 94 of file list.h. References csList< T >::csListElement::next. |
|
Test if there is a previous element.
Definition at line 97 of file list.h. References csList< T >::csListElement::prev. |
|
Test if the Iterator is set to the first element.
Definition at line 100 of file list.h. References csList< T >::csListElement::prev. |
|
Test if the Iterator is set to the last element.
Definition at line 103 of file list.h. References csList< T >::csListElement::next. |
|
Test if the iterator is reversed.
Definition at line 106 of file list.h. Referenced by csList< T >::Delete(). |
|
Advance to next element and return it.
Definition at line 125 of file list.h. References csList< T >::csListElement::next. |
|
Dereference operator (*).
Definition at line 113 of file list.h. References csList< T >::csListElement::data. |
|
Cast operator.
Definition at line 110 of file list.h. References csList< T >::csListElement::data. |
|
Advance to next element and return it.
Definition at line 139 of file list.h. References csList< T >::csListElement::next. |
|
Backup to previous element and return it.
Definition at line 146 of file list.h. References csList< T >::csListElement::prev. |
|
Dereference operator (->).
Definition at line 116 of file list.h. References csList< T >::csListElement::data. |
|
Assignment operator.
Definition at line 88 of file list.h. References csList< T >::Iterator::ptr. |
|
Backup to previous element and return it.
Definition at line 132 of file list.h. References csList< T >::csListElement::prev. |
The documentation for this class was generated from the following file:
- csutil/list.h
Generated for Crystal Space by doxygen 1.2.18