| 1 | // $Id: dstack.h,v 1.2 2003/04/14 05:51:03 mbridak Exp $cxx . . $ `<file>/src/dstack.h`/ |
| 2 | // dstack.h -- Dynamic stack (DStack) declaration and function prototypes. |
| 3 | // |
| 4 | |
| 5 | #ifndef FALSE |
| 6 | #define FALSEcxx . . $ `src/dstack.h:6:9`! 0 |
| 7 | #endif |
| 8 | #ifndef TRUE |
| 9 | #define TRUEcxx . . $ `src/dstack.h:9:9`! 1 |
| 10 | #endif |
| 11 | |
| 12 | typedef structcxx . . $ $anonymous_type_a6209027130cf9f4_0# |
| 13 | { |
| 14 | float valuecxx . . $ $anonymous_type_a6209027130cf9f4_0#value.; |
| 15 | void *nextcxx . . $ $anonymous_type_a6209027130cf9f4_0#next., *previouscxx . . $ $anonymous_type_a6209027130cf9f4_0#previous.; |
| 16 | } STACKVALUEcxx . . $ STACKVALUE#; |
| 17 | |
| 18 | class DStackcxx . . $ DStack# |
| 19 | { |
| 20 | private: |
| 21 | STACKVALUEcxx . . $ STACKVALUE# *bottom_cxx . . $ DStack#bottom_.; |
| 22 | STACKVALUEcxx . . $ STACKVALUE# *top_cxx . . $ DStack#top_.; |
| 23 | int number_itemscxx . . $ DStack#number_items.; |
| 24 | |
| 25 | public: |
| 26 | DStackcxx . . $ DStack#DStack(49f6e7a06ebc5aa8).(); |
| 27 | ~cxx . . $ DStack#`~DStack`(ced63f7c635d850d).DStackcxx . . $ DStack#(); |
| 28 | void clear_stackcxx . . $ DStack#clear_stack(49f6e7a06ebc5aa8).(); // erase everything |
| 29 | int pushcxx . . $ DStack#push(1bb0578f3efdc255).(float val); |
| 30 | int num_itemscxx . . $ DStack#num_items(b126dc7c1de90089).(); |
| 31 | float popcxx . . $ DStack#pop(9b8c9e39889c762c).(); |
| 32 | int emptycxx . . $ DStack#empty(b126dc7c1de90089).(); |
| 33 | void printcxx . . $ DStack#print(49f6e7a06ebc5aa8).(); |
| 34 | }; |