Open
Graph Drawing
Framework

 v.2012.05
 

PQNodeKey.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_NODE_KEY_H
00049 #define OGDF_PQ_NODE_KEY_H
00050 
00051 
00052 
00053 #include <stdlib.h>
00054 #include <ogdf/internal/planarity/PQBasicKey.h>
00055 
00056 namespace ogdf {
00057 
00058 
00059 template<class T,class X,class Y> class PQNode;
00060 
00077 template<class T,class X,class Y>
00078 class PQNodeKey : public PQBasicKey<T,X,Y>
00079 {  
00080 public:
00081 
00083     X m_userStructInfo;
00084 
00085     // Constructor
00086     PQNodeKey(X info):PQBasicKey<T,X,Y>() { m_userStructInfo = info; }
00087     
00088     // Destructor
00089     virtual ~PQNodeKey() { }
00090 
00092     virtual T userStructKey() { return 0; }
00093     
00095     virtual X userStructInfo() { return m_userStructInfo; }
00096 
00098     virtual Y userStructInternal() { return 0; }
00099 };
00100 
00101 }
00102 
00103 #endif