hangsort.h

Go to the documentation of this file.
00001 #ifndef __hangsort_h
00002 #define __hangsort_h
00003 
00004 /*---------------------------------------------------*/
00005 
00006 namespace Gascoigne
00007 {
00008 class HangEdgeSort{
00009 protected:
00010   const EdgeManager& HR;
00011 public:
00012   HangEdgeSort(const EdgeManager& H) : HR(H) {}
00013   bool operator() (int i, int j) const
00014     {
00015       return !HR.EdgeIsHanging(i) && HR.EdgeIsHanging(j);
00016     }
00017 };
00018 
00019 /*---------------------------------------------------*/
00020 
00021 class HangEdgeSort2{
00022 protected:
00023   const EdgeManager& HR;
00024 public:
00025   HangEdgeSort2(const EdgeManager& H) : HR(H) {}
00026   bool operator() (const Edge& i, const Edge& j) const
00027     {
00028       return !HR.EdgeIsHanging(i) && HR.EdgeIsHanging(j);
00029     }
00030 };
00031 }
00032 
00033 #endif

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