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

cGqMethods.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __CGQ_METHODS_H
00005 #define __CGQ_METHODS_H
00006 
00007 #include <dolfin/cGqMethod.h>
00008 
00009 namespace dolfin {
00010 
00019 
00020   class cGqMethods {
00021   public:
00022 
00024     cGqMethods();
00025 
00027     ~cGqMethods();
00028     
00030     inline const cGqMethod& operator() (unsigned int q) const
00031     {
00032       dolfin_assert(q >= 1);
00033       dolfin_assert(q < size);
00034       dolfin_assert(methods[q]);
00035       
00036       return *(methods[q]);
00037     }
00038 
00040     void init(unsigned int q);
00041 
00042   private:
00043     
00044     cGqMethod** methods;
00045     unsigned int size;
00046 
00047   };
00048   
00050   extern cGqMethods cG;
00051   
00052 }
00053 
00054 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.