StackList.h

00001 /*  _________________________________________________________________________
00002  *
00003  *  UTILIB: A utility library for developing portable C++ codes.
00004  *  Copyright (c) 2001, Sandia National Laboratories.
00005  *  This software is distributed under the GNU Lesser General Public License.
00006  *  For more information, see the README file in the top UTILIB directory.
00007  *  _________________________________________________________________________
00008  */
00009 
00010 //
00011 // StackList.h
00012 //
00022 #ifndef __StackList_h
00023 #define __StackList_h
00024 
00025 #ifdef __GNUC__
00026 #pragma interface
00027 #endif
00028 
00029 #ifndef ANSI_HDRS
00030 #include <stddef.h>
00031 #else
00032 #include <cstddef>
00033 #endif
00034 
00035 #include "LinkedList.h"
00036 
00037 #if !defined(StackListT)
00038 #ifndef USING_TEMPLATES
00039 #define StackListT(T) StackList_##T
00040 #else
00041 #define StackListT(T) StackList<##T##>
00042 #endif
00043 #endif
00044 
00048 
00049 template <class T>
00050 class UTILIB_API StackList : public LinkedList<T>
00051 {
00052 public:
00053 
00055   StackList() : LinkedList() {mode = stackLL;}
00056 
00057 };
00058 
00059 #endif