1 #if !defined(__CORELINUXASSOCIATIVEITERATOR_HPP)
2 #define __CORELINUXASSOCIATIVEITERATOR_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__ASSOCIATIVEITERATOR_HPP)
29 #include <AssociativeIterator.hpp>
32 #if !defined(__INVALIDITERATOREXCEPTION_HPP)
33 #include <InvalidIteratorException.hpp>
36 #if !defined(__ITERATORBOUNDSEXCEPTION_HPP)
37 #include <IteratorBoundsException.hpp>
50 template<
class TraverseType,
class KeyType,
class ElementType >
182 throw IteratorBoundsException(LOCATION);
188 return (*theCurrent).second;
204 throw IteratorBoundsException(LOCATION);
210 return (*theCurrent).first;
239 throw IteratorBoundsException(LOCATION);
259 throw IteratorBoundsException(LOCATION);
299 #endif // if !defined(__CORELINUXASSOCIATIVEITERATOR_HPP)
InvalidIteratorException is an exception that indicates a Iterator could not be properly formed for s...
Definition: InvalidIteratorException.hpp:43
IteratorBoundsException is thrown when a Iterator has position before the begining or past the end po...
Definition: IteratorBoundsException.hpp:44
virtual void setLast(void)
Set AssociativeIterator to last element.
Definition: CoreLinuxAssociativeIterator.hpp:265
virtual void setNext(void)
Set AssociativeIterator to next element if attempt to position past end of elements.
Definition: CoreLinuxAssociativeIterator.hpp:230
virtual bool isValid(void) const
isValid implementation for determining if the current position points to a valid EntityType instance ...
Definition: CoreLinuxAssociativeIterator.hpp:164
virtual ~CoreLinuxAssociativeIterator(void)
Destructor.
Definition: CoreLinuxAssociativeIterator.hpp:112
TraverseType theCurrent
The current position.
Definition: CoreLinuxAssociativeIterator.hpp:294
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
virtual void setFirst(void)
Set AssociativeIterator to first element.
Definition: CoreLinuxAssociativeIterator.hpp:219
virtual KeyType getKey(void) const
getKey returns the KeyType instance that is currently pointed to by the AssociativeIterator ...
Definition: CoreLinuxAssociativeIterator.hpp:199
The AssociativeIterator that extends Iterator to include the interface for describing an associative ...
Definition: AssociativeIterator.hpp:44
The CoreLinuxAssociativeIterator provides a way to access the elements of any of the associative STL ...
Definition: CoreLinuxAssociativeIterator.hpp:51
CoreLinuxAssociativeIterator(void)
Default constructor - the CoreLinuxAssociativeIterator requires being constructed with a valid collec...
Definition: CoreLinuxAssociativeIterator.hpp:67
TraverseType theEnd
The last position.
Definition: CoreLinuxAssociativeIterator.hpp:290
TraverseType theBegin
The first position.
Definition: CoreLinuxAssociativeIterator.hpp:286
virtual void setPrevious(void)
Set AssociativeIterator to previous element if attempt to position before begining of elements...
Definition: CoreLinuxAssociativeIterator.hpp:249
virtual ElementType getElement(void) const
getElement returns the ElementType instance that is currently managed by the CoreLinuxAssociativeIter...
Definition: CoreLinuxAssociativeIterator.hpp:177
CoreLinuxAssociativeIterator(TraverseType aBegin, TraverseType aEnd)
Initializing constructor.
Definition: CoreLinuxAssociativeIterator.hpp:81