Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gtbasislist.hpp

Go to the documentation of this file.
00001 //************************************************************************************//
00002 // Module       : gbasislist.cpp
00003 // Date         : 7/26/05 (DLR)
00004 // Copyright    : 2005-2006 Copyright University Corporation for Atmospheric
00005 //                Research
00006 // Description  : Encapsulates the methods and data associated with
00007 //                a simple object template linked list. This class was taken
00008 //                largely from Algorithms and Data Structures in C++
00009 //                by Ameraal, although it has been recast as a template
00010 //                class for basis objects.
00011 // Derived From : GTBasisList.
00012 // Modifications:
00013 //************************************************************************************//
00014 #if !defined(GTBASISLIST_HPP)
00015 #define GTBASISLIST_HPP
00016 
00017 #include "gtypes.h"
00018 #include <iostream.h>
00019 #include <stdlib.h>
00020 #include "gobjlist.hpp"
00021 #include "gllbasis.hpp"
00022 #include "glbasis.hpp"
00023 
00024 #if !defined(GTBasisListGLL)
00025 #  define GTBasisListGLL GTBasisList<GLLBasis>
00026 #endif
00027 
00028 #if !defined(GTBasisListGL)
00029 #  define GTBasisListGL GTBasisList<GLBasis>
00030 #endif
00031 
00032 
00033 template <class TT> class GTBasisList : public GObjList<TT>
00034 {
00035 
00036 public:
00037                           GTBasisList(GBOOL renumber_on_delete=FALSE);
00038                           GTBasisList(GINT  nelems, GBOOL renumber_on_delete=FALSE);
00039                           GTBasisList(const GTBasisList &);
00040                          ~GTBasisList();
00041 
00042          void             add(GINT order);
00043          GBOOL            findorder(GINT order);
00044          GBOOL            findorder(GINT order, GINT &ind);
00045          
00046 private:
00047 // Private methods:
00048 
00049 // Private data:
00050 
00051 };
00052 #  if defined(_LINUX) || defined(_AIX)
00053 template class GTBasisList<GLLBasis>;
00054 template class GTBasisList<GLBasis>;
00055 # endif
00056 #endif
00057 

Generated on Wed Dec 21 16:00:48 2005 for Geophysics & Astrophysics Spectral Element Adaptive Refinement (GASpAR) 2D Code by  doxygen 1.4.4