levelsorter3d.h

Go to the documentation of this file.
00001 #ifndef  __levelsorter3d_h
00002 #define  __levelsorter3d_h
00003 
00004 #include  "hierarchicalmesh3d.h"
00005 
00006 /*---------------------------------------------------*/
00007 
00008 namespace Gascoigne
00009 {
00010 class LevelSorter3d
00011 {
00012 protected:
00013 
00014   const HierarchicalMesh3d& HM;
00015 
00016 public:
00017 
00018   LevelSorter3d(const HierarchicalMesh3d& HMHM): HM(HMHM) {}
00019   bool operator()(int i, int j) const
00020     {
00021       return ( HM.hex(i).level() > HM.hex(j).level() );
00022     }
00023 };
00024 }
00025 
00026 /*---------------------------------------------------*/
00027 
00028 #endif

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