Stack.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_STACK_H
00002 #define JAVA_UTIL_STACK_H 1
00003 
00004 #ifndef JAVA_LANG_SYNC_H
00005 #include <java_lang/Sync.h>
00006 #endif /* JAVA_LANG_SYNC_H */
00007 
00008 namespace java {
00009   namespace util {
00010 
00026     class JAVA_UTIL_SPEC Stack
00027       : virtual public Interface {
00028 
00029     public:
00030 
00040       static Ref<Stack> synchronizedStack(const Ref<Stack>& c, const Ref<Sync>& sync = 0);
00041 
00047       virtual jint size() const = 0;
00048 
00055       virtual jboolean isEmpty() const = 0;
00056 
00064       virtual ObjectRef push(const ObjectRef& item) = 0;
00065 
00074       virtual ObjectRef pop() = 0;
00075 
00084       virtual ObjectRef peek() const = 0;
00085 
00100       virtual jint search(const ObjectRef& o) const = 0;
00101 
00105       virtual void clear() = 0;
00106 
00107     private:
00108 
00109       REGISTER_MEMBERS;
00110 
00111     };
00112 
00113   } // namespace util
00114 } // namespace java
00115 
00116 #endif /* JAVA_UTIL_STACK_H */

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