|
CoreLinux++
0.4.32
|
The CoreLinuxIterator provides a way to access the elements of any of the non-associative STL collections. More...
#include <CoreLinuxIterator.hpp>
Public Member Functions | |
| CoreLinuxIterator (void) throw (InvalidIteratorException) | |
| Default constructor. More... | |
| CoreLinuxIterator (TraverseType aBegin, TraverseType aEnd) | |
| Initializing constructor. More... | |
| CoreLinuxIterator (const CoreLinuxIterator &aRef) | |
| Copy constructor. More... | |
| virtual | ~CoreLinuxIterator (void) |
| Destructor. | |
| CoreLinuxIterator & | operator= (const CoreLinuxIterator &aRef) |
| Assignment operator. More... | |
| bool | operator== (const CoreLinuxIterator &aRef) const |
| Equality operator. More... | |
| virtual bool | isValid (void) const |
| isValid implementation for determining if the current position points to a valid EntityType instance More... | |
| virtual ElementType | getElement (void) const throw (IteratorBoundsException) |
| getElement returns the ElementType instance that is currently managed by the CoreLinuxIterator More... | |
| virtual void | setFirst (void) |
| Set iterator to first element. | |
| virtual void | setNext (void) throw (IteratorBoundsException) |
| Set iterator to next element. More... | |
| virtual void | setPrevious (void) throw (IteratorBoundsException) |
| Set iterator to previous element. More... | |
| virtual void | setLast (void) throw (IteratorBoundsException) |
| Set iterator to last element. | |
Public Member Functions inherited from corelinux::Iterator< ElementType > | |
| Iterator (void) | |
| Default constructor. | |
| Iterator (const Iterator &aRef) | |
| Copy constructor. More... | |
| virtual | ~Iterator (void) |
| Destructor. | |
| Iterator & | operator= (const Iterator &) |
| Assignment operator. More... | |
| bool | operator== (const Iterator &aRef) const |
| Equality operator. More... | |
Public Member Functions inherited from corelinux::CoreLinuxObject | |
| CoreLinuxObject (void) | |
| Default Constructor. | |
| CoreLinuxObject (CoreLinuxObjectCref) | |
| Copy Constructor. More... | |
| virtual | ~CoreLinuxObject (void) |
| Virtual Destructor. | |
| CoreLinuxObjectRef | operator= (CoreLinuxObjectCref) |
| Assignment operator overload. More... | |
| bool | operator== (CoreLinuxObjectCref) const |
| Equality operator overload. More... | |
| bool | operator!= (CoreLinuxObjectCref) const |
| Non-equality operator overload. More... | |
Protected Attributes | |
| TraverseType | theBegin |
| The first position. | |
| TraverseType | theEnd |
| The last position. | |
| TraverseType | theCurrent |
| The current position. | |
The CoreLinuxIterator provides a way to access the elements of any of the non-associative STL collections.
By defining a CoreLinuxIterator with a CORELINUX_COLLECTION nameIterator definition and the Element Type.
|
inline | ||||||||||||||
Default constructor.
| InvalidIteratorException | - the CoreLinuxIterator requires being constructed with a valid collection |
|
inline |
Initializing constructor.
| TraverseType | aBegin first position |
| TraverseType | aEnd last position |
|
inline |
Copy constructor.
| CoreLinuxIterator | const reference |
|
inlinevirtual | ||||||||||||||
getElement returns the ElementType instance that is currently managed by the CoreLinuxIterator
| IteratorBoundsException | if the Iterator is not positioned correctley. |
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::isValid(), and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theCurrent.
|
inlinevirtual |
isValid implementation for determining if the current position points to a valid EntityType instance
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::theCurrent, and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theEnd.
Referenced by corelinux::CoreLinuxIterator< TraverseType, ElementType >::getElement().
|
inline |
Assignment operator.
| CoreLinuxIterator | const reference |
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::theBegin, corelinux::CoreLinuxIterator< TraverseType, ElementType >::theCurrent, and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theEnd.
|
inline |
Equality operator.
| CoreLinuxIterator | const reference |
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::theBegin, and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theEnd.
|
inlinevirtual | ||||||||||||||
Set iterator to next element.
| IteratorBoundsException | if attempt to position past end of elements |
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::theCurrent, and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theEnd.
|
inlinevirtual | ||||||||||||||
Set iterator to previous element.
| IteratorBoundsException | if attempt to position before begining of elements |
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxIterator< TraverseType, ElementType >::theBegin, corelinux::CoreLinuxIterator< TraverseType, ElementType >::theCurrent, and corelinux::CoreLinuxIterator< TraverseType, ElementType >::theEnd.
Referenced by corelinux::CoreLinuxIterator< TraverseType, ElementType >::setLast().