1 #if !defined(__CORELINUXITERATOR_HPP)
2 #define __CORELINUXITERATOR_HPP
24 #if !defined(__COMMON_HPP)
28 #if !defined(__ITERATOR_HPP)
29 #include <Iterator.hpp>
32 #if !defined(__INVALIDITERATOREXCEPTION_HPP)
33 #include <InvalidIteratorException.hpp>
36 #if !defined(__ITERATORBOUNDSEXCEPTION_HPP)
37 #include <IteratorBoundsException.hpp>
49 template<
class TraverseType,
class ElementType >
173 throw IteratorBoundsException(LOCATION);
208 throw IteratorBoundsException(LOCATION);
228 throw IteratorBoundsException(LOCATION);
268 #endif // if !defined(__CORELINUXITERATOR_HPP)
InvalidIteratorException is an exception that indicates a Iterator could not be properly formed for s...
Definition: InvalidIteratorException.hpp:43
CoreLinuxIterator(const CoreLinuxIterator &aRef)
Copy constructor.
Definition: CoreLinuxIterator.hpp:94
IteratorBoundsException is thrown when a Iterator has position before the begining or past the end po...
Definition: IteratorBoundsException.hpp:44
virtual ~CoreLinuxIterator(void)
Destructor.
Definition: CoreLinuxIterator.hpp:106
virtual void setFirst(void)
Set iterator to first element.
Definition: CoreLinuxIterator.hpp:188
virtual void setLast(void)
Set iterator to last element.
Definition: CoreLinuxIterator.hpp:234
TraverseType theEnd
The last position.
Definition: CoreLinuxIterator.hpp:259
virtual void setPrevious(void)
Set iterator to previous element if attempt to position before begining of elements.
Definition: CoreLinuxIterator.hpp:218
virtual bool isValid(void) const
isValid implementation for determining if the current position points to a valid EntityType instance ...
Definition: CoreLinuxIterator.hpp:155
CoreLinuxIterator(void)
Default constructor - the CoreLinuxIterator requires being constructed with a valid collection...
Definition: CoreLinuxIterator.hpp:65
The CoreLinuxIterator provides a way to access the elements of any of the non-associative STL collect...
Definition: CoreLinuxIterator.hpp:50
CoreLinuxIterator(TraverseType aBegin, TraverseType aEnd)
Initializing constructor.
Definition: CoreLinuxIterator.hpp:79
bool operator==(const CoreLinuxIterator &aRef) const
Equality operator.
Definition: CoreLinuxIterator.hpp:138
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
TraverseType theBegin
The first position.
Definition: CoreLinuxIterator.hpp:255
The Iterator provides a way to access the elements of an collection type sequentially without exposin...
Definition: Iterator.hpp:44
TraverseType theCurrent
The current position.
Definition: CoreLinuxIterator.hpp:263
virtual void setNext(void)
Set iterator to next element if attempt to position past end of elements.
Definition: CoreLinuxIterator.hpp:199
virtual ElementType getElement(void) const
getElement returns the ElementType instance that is currently managed by the CoreLinuxIterator ...
Definition: CoreLinuxIterator.hpp:168