cstack.h

Go to the documentation of this file.
00001 
00014 #ifndef CSTACK_H_INCLUDED
00015 #define CSTACK_H_INCLUDED
00016 
00017 #include <Coconut/coconut-sysdep.h>
00018 
00020 typedef struct _CStackElm       CStackElm ;
00022 typedef CStackElm *             CStackElmPtr ;
00024 typedef const CStackElm *       CConstStackElmPtr ;
00025 
00029 @interface CStack : NSObject 
00030 {
00033         CStackElmPtr    stack_bottom ;
00035         uint_t          current_num ;
00037         uint_t          max_num ;
00038 }
00039 
00045 - init ;
00046 
00052 - (void) dealloc ;
00053 
00060 - (void) push: (id) obj ;
00061 
00069 - (id) pop ;
00070 
00077 - (uint_t) num ;
00078 
00086 - (id) objectAtTop ;
00087 
00095 - (id) objectAtIndex: (uint_t) idx ;
00096 
00097 @end
00098 
00099 #endif /* CSTACK_H_INCLUDED */
00100 

Generated on Mon Mar 20 18:48:15 2006 for Coconut by  doxygen 1.4.6