--- parser3/src/include/pa_stack.h 2002/02/08 07:27:45 1.12 +++ parser3/src/include/pa_stack.h 2004/02/11 15:33:14 1.22 @@ -1,44 +1,54 @@ /** @file Parser: stack class decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_stack.h,v 1.12 2002/02/08 07:27:45 paf Exp $ + Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STACK_H #define PA_STACK_H +static const char * const IDENT_STACK_H="$Date: 2004/02/11 15:33:14 $"; + #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