#include <Iterator.hpp>

Public Member Functions | ||||
| Iterator (void) | ||||
| Default constructor. | ||||
| Iterator (const Iterator &aRef) | ||||
| Copy constructor. | ||||
| virtual | ~Iterator (void) | |||
| Destructor. | ||||
| Iterator & | operator= (const Iterator &) | |||
| Assignment operator. | ||||
| bool | operator== (const Iterator &aRef) const | |||
| Equality operator. | ||||
| virtual bool | isValid (void) const =0 | |||
| isValid abstract interface for implementation to determine if the current position points to a valid EntityType instance | ||||
| virtual ElementType | getElement (void) const =0 throw (IteratorBoundsException) | |||
| getElement returns the ElementType instance that is currently pointed to by the Iterator | ||||
| virtual void | setFirst (void)=0 | |||
| Set iterator to first element. | ||||
| virtual void | setNext (void)=0 throw (IteratorBoundsException) | |||
Set iterator to next element
| ||||
| virtual void | setPrevious (void)=0 throw (IteratorBoundsException) | |||
Set iterator to previous element
| ||||
| virtual void | setLast (void)=0 throw (IteratorBoundsException) | |||
Set iterator to last element
| ||||
The implementation requires a template argument that describes the ElementType being iterated over.
| corelinux::Iterator< ElementType >::Iterator | ( | const Iterator< ElementType > & | aRef | ) | [inline] |
| Iterator& corelinux::Iterator< ElementType >::operator= | ( | const Iterator< ElementType > & | ) | [inline] |
| bool corelinux::Iterator< ElementType >::operator== | ( | const Iterator< ElementType > & | aRef | ) | const [inline] |
| virtual bool corelinux::Iterator< ElementType >::isValid | ( | void | ) | const [pure virtual] |
isValid abstract interface for implementation to determine if the current position points to a valid EntityType instance
Implemented in corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >, and corelinux::CoreLinuxIterator< TraverseType, ElementType >.
Referenced by corelinux::Subject::notifyAllObservers(), and corelinux::Subject::notifyObservers().
| virtual ElementType corelinux::Iterator< ElementType >::getElement | ( | void | ) | const throw (IteratorBoundsException) [pure virtual] |
getElement returns the ElementType instance that is currently pointed to by the Iterator
| IteratorBoundsException | if the Iterator is not positioned correctley. |
Implemented in corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >, and corelinux::CoreLinuxIterator< TraverseType, ElementType >.
Referenced by corelinux::Subject::notifyAllObservers(), and corelinux::Subject::notifyObservers().