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 | |||
throw (InvalidIteratorException) | |||
Default constructor
| |||
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
| |||
virtual void | setPrevious (void) throw (IteratorBoundsException) | ||
Set iterator to previous element
| |||
virtual void | setLast (void) throw (IteratorBoundsException) | ||
Set iterator to last element. | |||
![]() | |||
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... | |||
![]() | |||
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 |
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.