PriorityQueue.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_PRIORITYQUEUE_H
00002 #define JAVA_UTIL_PRIORITYQUEUE_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_COMPARATOR_H
00008 #include <java_util/Comparator.h>
00009 #endif /* JAVA_UTIL_COMPARATOR_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00028     class JAVA_UTIL_SPEC PriorityQueue : virtual public Object, virtual public Queue {
00029 
00030     public:
00031 
00037       PriorityQueue(const Ref<Comparator>& comp = 0);
00038 
00046       virtual Ref<Comparator> comparator() const;
00047 
00053       virtual jint size() const;
00054 
00061       virtual jboolean isEmpty() const;
00062 
00070       virtual ObjectRef enqueue(const ObjectRef& item);
00071 
00080       virtual ObjectRef dequeue();
00081 
00089       virtual ObjectRef requeue();
00090 
00098       virtual ObjectRef head() const;
00099 
00114       virtual jint search(const ObjectRef& o) const;
00115 
00119       virtual void clear();
00120 
00125       virtual Ref<List> getInternalList() const;
00126 
00127       virtual String toString() const;
00128 
00129     private:
00130 
00131       ObjectRef impl;
00132       REGISTER_MEMBERS;
00133 
00134     };
00135 
00136   } // namespace util
00137 } // namespace java
00138 
00139 #endif /* PRIORITYQUEUE_H */

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