levelcomparer2d.h

Go to the documentation of this file.
00001 #ifndef __levelcomparer2d_h
00002 #define __levelcomparer2d_h
00003 
00004 #include "compareclass.h"
00005 
00006 /*---------------------------------------------------*/
00007 
00008 namespace Gascoigne
00009 {
00010 class LevelComparer2d
00011 {
00012   const HierarchicalMesh2d&   Mesh;
00013   const IntVector& v;
00014 
00015   public:
00016   
00017   LevelComparer2d(const HierarchicalMesh2d& HM, const IntVector& vv) : 
00018     Mesh(HM), v(vv) {};
00019 
00020   int size() const { return v.size(); }
00021   int operator[](int i) const 
00022     {
00023       return Mesh.quad(v[i]).level();
00024     }
00025 };
00026 }
00027 
00028 /*---------------------------------------------------*/
00029 
00030 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7