ListQueue.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_LISTQUEUE_H
00002 #define JAVA_UTIL_LISTQUEUE_H 1
00003 
00004 #ifndef JAVA_UTIL_QUEUE_H
00005 #include <java_util/Queue.h>
00006 #endif /* JAVA_UTIL_QUEUE_H */
00007 #ifndef JAVA_UTIL_LIST_H
00008 #include <java_util/List.h>
00009 #endif /* JAVA_UTIL_LIST_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00029     class JAVA_UTIL_SPEC ListQueue : virtual public Object, virtual public Queue {
00030 
00031     public:
00032 
00037       ListQueue(const Ref<List>& list = 0);
00038 
00044       virtual jint size() const;
00045 
00052       virtual jboolean isEmpty() const;
00053 
00061       virtual ObjectRef enqueue(const ObjectRef& item);
00062 
00071       virtual ObjectRef dequeue();
00072 
00080       virtual ObjectRef requeue();
00081 
00089       virtual ObjectRef head() const;
00090 
00105       virtual jint search(const ObjectRef& o) const;
00106 
00110       virtual void clear();
00111 
00116       virtual Ref<List> getInternalList() const;
00117 
00118     private:
00119 
00120       Ref<List> impl;
00121       REGISTER_MEMBERS;
00122 
00123     };
00124 
00125   } // namespace util
00126 } // namespace java
00127 
00128 #endif /* JAVA_UTIL_LISTQUEUE_H */

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