ListStack.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_LISTSTACK_H
00002 #define JAVA_UTIL_LISTSTACK_H 1
00003 
00004 #ifndef JAVA_UTIL_STACK_H
00005 #include <java_util/Stack.h>
00006 #endif /* JAVA_UTIL_STACK_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 ListStack : virtual public Object, virtual public Stack {
00030 
00031     public:
00032 
00037       ListStack(const Ref<List>& list = 0);
00038 
00044       virtual jint size() const;
00045 
00052       virtual jboolean isEmpty() const;
00053 
00061       virtual ObjectRef push(const ObjectRef& item);
00062 
00071       virtual ObjectRef pop();
00072 
00081       virtual ObjectRef peek() const;
00082 
00097       virtual jint search(const ObjectRef& o) const;
00098 
00102       virtual void clear();
00103 
00104     private:
00105 
00106       Ref<List> impl;
00107       REGISTER_MEMBERS;
00108 
00109     };
00110 
00111   } // namespace util
00112 } // namespace java
00113 
00114 #endif /* JAVA_UTIL_LISTSTACK_H */

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