csList< T, MemoryAllocator >::csList::Iterator Class Reference
Iterator for the list. More...
#include <csutil/list.h>
Public Member Functions | |
| void | Clear () |
| Set iterator to non-existent element. HasCurrent() will return false. | |
| T & | FetchCurrent () const |
| Return current element. | |
| T & | FetchNext () const |
| Return next element but don't modify iterator. | |
| T & | FetchPrevious () const |
| Return previous element but don't modify iterator. | |
| 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. | |
| Iterator (const csList< T, MemoryAllocator > &list, bool reverse=false) | |
| Constructor. | |
| Iterator (const Iterator &r) | |
| Copy constructor. | |
| Iterator () | |
| Constructor. | |
| T & | Next () |
| Advance to next element and return it. | |
| operator T * () const | |
| Cast operator. | |
| T & | operator* () const |
| Dereference operator (*). | |
| Iterator & | operator++ () |
| Advance to next element and return it. | |
| Iterator & | operator-- () |
| Backup to previous element and return it. | |
| T * | operator-> () const |
| Dereference operator (->). | |
| Iterator & | operator= (const Iterator &r) |
| Assignment operator. | |
| T & | Previous () |
| Backup to previous element and return it. | |
Friends | |
| class | csList< T, MemoryAllocator > |
Detailed Description
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
class csList< T, MemoryAllocator >::Iterator
Iterator for the list.
Definition at line 94 of file list.h.
Constructor & Destructor Documentation
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| csList< T, MemoryAllocator >::csList::Iterator::Iterator | ( | ) | [inline] |
Member Function Documentation
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| void csList< T, MemoryAllocator >::csList::Iterator::Clear | ( | ) | [inline] |
Set iterator to non-existent element. HasCurrent() will return false.
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::FetchCurrent | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::FetchNext | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::FetchPrevious | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::HasCurrent | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::HasNext | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::HasPrevious | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::IsFirst | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::IsLast | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| bool csList< T, MemoryAllocator >::csList::Iterator::IsReverse | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::Next | ( | ) | [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| csList< T, MemoryAllocator >::csList::Iterator::operator T * | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::operator* | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T* csList< T, MemoryAllocator >::csList::Iterator::operator-> | ( | ) | const [inline] |
template<class T, class MemoryAllocator = CS::Memory::AllocatorMalloc>
| T& csList< T, MemoryAllocator >::csList::Iterator::Previous | ( | ) | [inline] |
The documentation for this class was generated from the following file:
- csutil/list.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8
