#include <coherence/util/Enumeration.hpp>
Inherits Object.
Successive calls to the nextElement method return successive elements of the series.
Public Types | |
typedef spec::Handle | Handle |
Enumeration Handle definition. | |
typedef spec::View | View |
Enumeration View definition. | |
typedef spec::Holder | Holder |
Enumeration Holder definition. | |
Public Member Functions | |
virtual bool | hasMoreElements () const =0 |
Tests if this enumeration contains more elements. | |
virtual Object::Holder | nextElement ()=0 |
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
virtual bool hasMoreElements | ( | ) | const [pure virtual] |
Tests if this enumeration contains more elements.
virtual Object::Holder nextElement | ( | ) | [pure virtual] |
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
coherence::lang::NoSuchElementException | if no more elements exist. |