|
CoreLinux++
0.4.32
|
The CoreLinuxAssociativeIterator provides a way to access the elements of any of the associative STL collections, by defining a CoreLinuxAssociativeIterator with a CORELINUX_COLLECTION nameAssociativeIterator definition, the KeyType and the Element Type. More...
#include <CoreLinuxAssociativeIterator.hpp>
Public Member Functions | |||
| throw (InvalidIteratorException) | |||
Default constructor
| |||
| CoreLinuxAssociativeIterator (TraverseType aBegin, TraverseType aEnd) | |||
| Initializing constructor. More... | |||
| CoreLinuxAssociativeIterator (const CoreLinuxAssociativeIterator &aRef) | |||
| Copy constructor. More... | |||
| virtual | ~CoreLinuxAssociativeIterator (void) | ||
| Destructor. | |||
| CoreLinuxAssociativeIterator & | operator= (const CoreLinuxAssociativeIterator &aRef) | ||
| Assignment operator. More... | |||
| bool | operator== (const CoreLinuxAssociativeIterator &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 CoreLinuxAssociativeIterator More... | |||
| virtual KeyType | getKey (void) const throw (IteratorBoundsException) | ||
| getKey returns the KeyType instance that is currently pointed to by the AssociativeIterator More... | |||
| virtual void | setFirst (void) | ||
| Set AssociativeIterator to first element. | |||
| virtual void | setNext (void) throw (IteratorBoundsException) | ||
Set AssociativeIterator to next element
| |||
| virtual void | setPrevious (void) throw (IteratorBoundsException) | ||
Set AssociativeIterator to previous element
| |||
| virtual void | setLast (void) throw (IteratorBoundsException) | ||
| Set AssociativeIterator to last element. | |||
Public Member Functions inherited from corelinux::AssociativeIterator< KeyType, ElementType > | |||
| AssociativeIterator (void) | |||
| Default constructor. | |||
| AssociativeIterator (const AssociativeIterator &aRef) | |||
| Copy constructor. More... | |||
| virtual | ~AssociativeIterator (void) | ||
| Destructor. | |||
| AssociativeIterator & | operator= (const AssociativeIterator &) | ||
| Assignment operator. More... | |||
| bool | operator== (const AssociativeIterator &aRef) const | ||
| Equality operator. More... | |||
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 CoreLinuxAssociativeIterator provides a way to access the elements of any of the associative STL collections, by defining a CoreLinuxAssociativeIterator with a CORELINUX_COLLECTION nameAssociativeIterator definition, the KeyType and the Element Type.
|
inline |
Initializing constructor.
| TraverseType | aBegin first position |
| TraverseType | aEnd last position |
|
inline |
Copy constructor.
| CoreLinuxAssociativeIterator | const reference |
|
inlinevirtual | ||||||||||||||
getElement returns the ElementType instance that is currently managed by the CoreLinuxAssociativeIterator
| IteratorBoundsException | if the AssociativeIterator is not positioned correctley. |
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::isValid().
|
inlinevirtual | ||||||||||||||
getKey returns the KeyType instance that is currently pointed to by the AssociativeIterator
| IteratorBoundsException | if the AssociativeIterator is not positioned correctly. |
Implements corelinux::AssociativeIterator< KeyType, ElementType >.
References corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::isValid().
|
inlinevirtual |
isValid implementation for determining if the current position points to a valid EntityType instance
Implements corelinux::Iterator< ElementType >.
References corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theCurrent, and corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theEnd.
Referenced by corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::getElement(), and corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::getKey().
|
inline |
Assignment operator.
| CoreLinuxAssociativeIterator | const reference |
References corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theBegin, corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theCurrent, and corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theEnd.
|
inline |
Equality operator.
| CoreLinuxAssociativeIterator | const reference |
References corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theBegin, and corelinux::CoreLinuxAssociativeIterator< TraverseType, KeyType, ElementType >::theEnd.