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

dGqMethods.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 __DGQ_METHODS_H
00005 #define __DGQ_METHODS_H
00006 
00007 #include <dolfin/dGqMethod.h>
00008 
00009 namespace dolfin {
00010 
00019 
00020   class dGqMethods {
00021   public:
00022 
00024     dGqMethods();
00025 
00027     ~dGqMethods();
00028     
00030     inline const dGqMethod& operator() (unsigned int q) const
00031     {
00032       dolfin_assert(q < size);
00033       dolfin_assert(methods[q]);
00034       
00035       return *methods[q];
00036     }
00037 
00039     void init(unsigned int q);
00040 
00041   private:
00042 
00043     dGqMethod** methods;
00044     unsigned int size;
00045 
00046   };
00047   
00049   extern dGqMethods dG;
00050   
00051 }
00052 
00053 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.