18 #ifndef _DECAF_UTIL_LISTITERATOR_H_ 19 #define _DECAF_UTIL_LISTITERATOR_H_ 62 virtual void add(
const E& e ) = 0;
82 virtual void set(
const E& e ) = 0;
virtual int previousIndex() const =0
Returns the index of the element that would be returned by a subsequent call to previous.
An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator's current position in the list.
Definition: ListIterator.h:38
Defines an object that can be used to iterate over the elements of a collection.
Definition: Iterator.h:34
virtual void add(const E &e)=0
Inserts the specified element into the list (optional operation).
virtual ~ListIterator()
Definition: ListIterator.h:41
virtual E previous()=0
Returns the previous element in the list.
virtual bool hasPrevious() const =0
Returns true if this list iterator has more elements when traversing the list in the reverse directio...
virtual int nextIndex() const =0
Returns the index of the element that would be returned by a subsequent call to next.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25