Open
Graph Drawing
Framework

 v.2012.05
 

EdgeComparerSimple.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $
00007  ***************************************************************/
00008  
00047 #ifdef _MSC_VER
00048 #pragma once
00049 #endif
00050 
00051 
00052 #ifndef OGDF_EDGECOMPARER_SIMPLE_H
00053 #define OGDF_EDGECOMPARER_SIMPLE_H
00054 
00055 
00056 
00057 #include <ogdf/planarity/PlanRep.h>
00058 #include <ogdf/basic/GraphAttributes.h>
00059 
00060 namespace ogdf {
00061 
00062 
00063 
00064 class OGDF_EXPORT EdgeComparerSimple : public VComparer<adjEntry>
00065 {
00066 public:
00067     
00068     EdgeComparerSimple(const GraphAttributes& AG, const node v) : 
00069       basis(v), m_AG(&AG)
00070     {}
00071 
00072     int compare(const adjEntry &e1, const adjEntry &e2) const;
00073     
00074 private:
00075     node basis;
00076     const GraphAttributes *m_AG;
00077     
00078 };//EdgeComparerSimple
00079 
00080 
00081 }//namespace ogdf
00082 
00083 #endif