Open
Graph Drawing
Framework

 v.2012.05
 

PQInternalKey.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  
00043 #ifdef _MSC_VER
00044 #pragma once
00045 #endif
00046 
00047 
00048 #ifndef OGDF_PQ_INTERNAL_KEY_H
00049 #define OGDF_PQ_INTERNAL_KEY_H
00050 
00051 
00052 #include <stdlib.h>
00053 #include <ogdf/internal/planarity/PQBasicKey.h>
00054 
00055 namespace ogdf {
00056 
00057 
00058 template<class T,class X,class Y> class PQNode;
00059 
00077 template<class T,class X,class Y>
00078 class PQInternalKey : public PQBasicKey<T,X,Y>
00079 {
00080 public:
00088     Y m_userStructInternal;
00089 
00090     //Constructor
00091     PQInternalKey(Y element) { m_userStructInternal = element; }
00092 
00093     //Destructor
00094     virtual ~PQInternalKey() {}
00095 
00097     virtual T userStructKey() { return 0; }
00098 
00100     virtual X userStructInfo() { return 0; }
00101 
00103     virtual Y userStructInternal() { return  m_userStructInternal; }
00104 };
00105 
00106 }
00107 
00108 #endif
00109