Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::genstruct::SLList< T, E >::Iterator Class Reference

#include <elm/genstruct/SLList.h>

+ Inheritance diagram for elm::genstruct::SLList< T, E >::Iterator:

Public Member Functions

 Iterator (void)
 
 Iterator (const SLList &_list)
 
 Iterator (const Iterator &source)
 
Iteratoroperator= (const Iterator &i)
 
bool ended (void) const
 
const T & item (void) const
 
void next (void)
 
- Public Member Functions inherited from elm::PreIterator< Iterator, const T & >
 operator bool (void) const
 
 operator const T & (void) const
 
Iterator & operator++ (void)
 
Iterator & operator++ (int)
 
const T & operator* (void) const
 
const T & operator-> (void) const
 

Detailed Description

template<class T, class E = Equiv<T>>
class elm::genstruct::SLList< T, E >::Iterator

Iterator for generic single link-list.

Constructor & Destructor Documentation

template<class T, class E = Equiv<T>>
elm::genstruct::SLList< T, E >::Iterator::Iterator ( void  )
template<class T, class E = Equiv<T>>
elm::genstruct::SLList< T, E >::Iterator::Iterator ( const SLList list)

Build a new iterator.

Parameters
listList to iterate on.
template<class T, class E = Equiv<T>>
elm::genstruct::SLList< T, E >::Iterator::Iterator ( const Iterator source)

Member Function Documentation

template<class T, class E = Equiv<T>>
bool elm::genstruct::SLList< T, E >::Iterator::ended ( void  ) const

Test if the end of the list is reached.

Returns
True if the end is reached, false.
template<class T, class E = Equiv<T>>
T elm::genstruct::SLList< T, E >::Iterator::item ( void  ) const

Get the current item.

Returns
Current item.
Warning
It is an error to call this method if the end of the list is reached.
template<class T, class E = Equiv<T>>
void elm::genstruct::SLList< T, E >::Iterator::next ( void  )

Go to the next item.

template<class T, class E = Equiv<T>>
Iterator& elm::genstruct::SLList< T, E >::Iterator::operator= ( const Iterator i)

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