Iterator.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_ITERATOR_H
00002 #define JAVA_UTIL_ITERATOR_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 
00008 namespace java {
00009   namespace util {
00010 
00027     class JAVA_UTIL_SPEC Iterator : virtual public Interface {
00028 
00029     public:
00030 
00034       static Ref<Iterator> emptyIterator();
00035 
00043       static Ref<Iterator> singletonIterator(const ObjectRef& o);
00044 
00056       static Ref<Iterator> immutableIterator(const Ref<Iterator>& i);
00057 
00065       virtual jboolean hasNext() = 0;
00066 
00073       virtual ObjectRef next() = 0;
00074 
00091       virtual void remove() = 0;
00092 
00093     private:
00094 
00095       REGISTER_MEMBERS;
00096 
00097     };
00098 
00099   } // namespace util
00100 } // namespace java
00101 
00102 #endif /* JAVA_UTIL_ITERATOR_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3