// // Basic Summary: clasical stack // // Include file for stack definition // // Copyright: // // Copyright 1993 Ron Burback // Copyright 1993 Objects Plus // All rights reserved // // Description: based on dynamic array // // // Methods: // // The methods are // stack(); - standard constructor // ~stack(); - standard disctructor // push - push an element // pop - pop an element // peak - look at an element without effecting the stack // // static Boolean test(); = quality assurance test // // Macro definitions: none // // // Class definition: // // stack // #ifndef _OP_STACK #define _OP_STACK #include "standard.h" #include "circular_buffer.h" #include "linked_chunk.h" #include "dynamic_array.h" class stack : dynamic_array { public: static char * version ; stack(); ~stack(); void push(void * e); void * pop(); void * peak () ; static Boolean test(); }; #endif