--- parser3/src/include/pa_stack.h 2001/03/19 15:29:38 1.7 +++ parser3/src/include/pa_stack.h 2003/07/24 11:31:21 1.18 @@ -1,42 +1,54 @@ /** @file - Parser - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Parser: stack class decl. - $Id: pa_stack.h,v 1.7 2001/03/19 15:29:38 paf Exp $ + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STACK_H #define PA_STACK_H +static const char* IDENT_STACK_H="$Date: 2003/07/24 11:31:21 $"; + +#include "pa_config_includes.h" #include "pa_array.h" /// simple stack based on Array -class Stack : public Array { +template class Stack: public Array { public: - Stack(Pool& apool) : Array(apool), ftop(0) { - } + Stack(): ftop(0) {} - void push(Item *item) { - if(ftop