Queue.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_QUEUE_H
00002 #define JAVA_UTIL_QUEUE_H 1
00003 
00004 #ifndef JAVA_LANG_SYNC_H
00005 #include <java_lang/Sync.h>
00006 #endif /* JAVA_LANG_SYNC_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 
00027     class JAVA_UTIL_SPEC Queue : virtual public Interface {
00028 
00029     public:
00030 
00040       static Ref<Queue> synchronizedQueue(const Ref<Queue>& c, const Ref<Sync>& sync = 0);
00041 
00047       virtual jint size() const = 0;
00048 
00055       virtual jboolean isEmpty() const = 0;
00056 
00064       virtual ObjectRef enqueue(const ObjectRef& item) = 0;
00065 
00074       virtual ObjectRef dequeue() = 0;
00075 
00083       virtual ObjectRef requeue() = 0;
00084 
00092       virtual ObjectRef head() const = 0;
00093 
00108       virtual jint search(const ObjectRef& o) const = 0;
00109 
00113       virtual void clear() = 0;
00114 
00118       virtual Ref<List> getInternalList() const = 0;
00119 
00120     private:
00121 
00122       REGISTER_MEMBERS;
00123 
00124     };
00125 
00126   } // namespace util
00127 } // namespace java
00128 
00129 #endif /* JAVA_UTIL_QUEUE_H */

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