Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

Stack_Type.h

Go to the documentation of this file.
00001 
00005 class Stack(Type)
00006 
00007 {
00008 private:
00009   StackCell(Type)* stackptr;
00010 
00011 public:
00012   Stack(Type) () { stackptr = NULL; }
00013  ~Stack(Type) () {}
00014 
00015   void push (Type value) { stackptr = new StackCell(Type) (value,stackptr;) }
00016   Type pop ();
00017   Type top ();
00018   bool empty () { return getbool(stackptr == NULL); }
00019 };
00020 
00021 

Copyright © 2003 inuTech GmbH. All rights reserved.