1 #if !defined(__ITERATOR_HPP) 24 #if !defined(__COMMON_HPP) 28 #include <IteratorBoundsException.hpp> 33 DECLARE_CLASS( IteratorBoundsException );
34 DECLARE_CLASS( InvalidIteratorException );
43 template<
class ElementType >
103 return (
this == &aRef);
117 virtual bool isValid(
void )
const = 0;
169 #endif // if !defined(__ITERATOR_HPP) IteratorBoundsException is thrown when a Iterator has position before the begining or past the end po...
Definition: IteratorBoundsException.hpp:44
Iterator(void)
Default constructor.
Definition: Iterator.hpp:54
virtual void setFirst(void)=0
Set iterator to first element.
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
virtual void setLast(void)=0
Set iterator to last element.
Iterator(const Iterator &aRef)
Copy constructor.
Definition: Iterator.hpp:66
bool operator==(const Iterator &aRef) const
Equality operator.
Definition: Iterator.hpp:101
virtual ~Iterator(void)
Destructor.
Definition: Iterator.hpp:75
The Iterator provides a way to access the elements of an collection type sequentially without exposin...
Definition: Iterator.hpp:44
An CoreLinuxObject is a base class for the library.
Definition: CoreLinuxObject.hpp:39
virtual bool isValid(void) const =0
isValid abstract interface for implementation to determine if the current position points to a valid ...
virtual ElementType getElement(void) const =0
getElement returns the ElementType instance that is currently pointed to by the Iterator ...
virtual void setNext(void)=0
Set iterator to next element.
Iterator & operator=(const Iterator &)
Assignment operator.
Definition: Iterator.hpp:90
virtual void setPrevious(void)=0
Set iterator to previous element.