--- parser3/src/include/pa_stack.h 2001/02/22 13:33:24 1.2 +++ parser3/src/include/pa_stack.h 2003/11/20 16:34:25 1.21 @@ -1,40 +1,54 @@ -/* - $Id: pa_stack.h,v 1.2 2001/02/22 13:33:24 paf Exp $ +/** @file + Parser: stack class decl. + + 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 * const IDENT_STACK_H="$Date: 2003/11/20 16:34:25 $"; + +#include "pa_config_includes.h" #include "pa_array.h" -class Stack : public Array { +/// simple stack based on Array +template class Stack: public Array { public: - Stack(Pool& apool) : Array(apool), ftop(0) { - } + Stack(): ftop(0) {} - void push(Item *item) { - if(ftop