#include <CoreLinuxIterator.hpp>
Inheritance diagram for corelinux::CoreLinuxIterator< TraverseType, ElementType >:
Public Member Functions | ||||
CoreLinuxIterator (void) throw (InvalidIteratorException) | ||||
Default constructor
| ||||
CoreLinuxIterator (TraverseType aBegin, TraverseType aEnd) | ||||
Initializing constructor. | ||||
CoreLinuxIterator (const CoreLinuxIterator &aRef) | ||||
Copy constructor. | ||||
virtual | ~CoreLinuxIterator (void) | |||
Destructor. | ||||
CoreLinuxIterator & | operator= (const CoreLinuxIterator &aRef) | |||
Assignment operator. | ||||
bool | operator== (const CoreLinuxIterator &aRef) const | |||
Equality operator. | ||||
virtual bool | isValid (void) const | |||
isValid implementation for determining if the current position points to a valid EntityType instance | ||||
virtual ElementType | getElement (void) const throw (IteratorBoundsException) | |||
getElement returns the ElementType instance that is currently managed by the CoreLinuxIterator | ||||
virtual void | setFirst (void) | |||
Set iterator to first element. | ||||
virtual void | setNext (void) throw (IteratorBoundsException) | |||
Set iterator to next element
| ||||
virtual void | setPrevious (void) throw (IteratorBoundsException) | |||
Set iterator to previous element
| ||||
virtual void | setLast (void) throw (IteratorBoundsException) | |||
Set iterator to last element. | ||||
Protected Attributes | ||||
TraverseType | theBegin | |||
The first position. | ||||
TraverseType | theEnd | |||
The last position. | ||||
TraverseType | theCurrent | |||
The current position. |
By defining a CoreLinuxIterator with a CORELINUX_COLLECTION nameIterator definition and the Element Type.
corelinux::CoreLinuxIterator< TraverseType, ElementType >::CoreLinuxIterator | ( | TraverseType | aBegin, | |
TraverseType | aEnd | |||
) | [inline] |
Initializing constructor.
TraverseType | aBegin first position | |
TraverseType | aEnd last position |
corelinux::CoreLinuxIterator< TraverseType, ElementType >::CoreLinuxIterator | ( | const CoreLinuxIterator< TraverseType, ElementType > & | aRef | ) | [inline] |
CoreLinuxIterator& corelinux::CoreLinuxIterator< TraverseType, ElementType >::operator= | ( | const CoreLinuxIterator< TraverseType, ElementType > & | aRef | ) | [inline] |
Assignment operator.
CoreLinuxIterator | const reference |
bool corelinux::CoreLinuxIterator< TraverseType, ElementType >::operator== | ( | const CoreLinuxIterator< TraverseType, ElementType > & | aRef | ) | const [inline] |
Equality operator.
CoreLinuxIterator | const reference |
virtual bool corelinux::CoreLinuxIterator< TraverseType, ElementType >::isValid | ( | void | ) | const [inline, virtual] |
isValid implementation for determining if the current position points to a valid EntityType instance
Implements corelinux::Iterator< ElementType >.
virtual ElementType corelinux::CoreLinuxIterator< TraverseType, ElementType >::getElement | ( | void | ) | const throw (IteratorBoundsException) [inline, virtual] |
getElement returns the ElementType instance that is currently managed by the CoreLinuxIterator
IteratorBoundsException | if the Iterator is not positioned correctley. |
Implements corelinux::Iterator< ElementType >.