Open
Graph Drawing
Framework

 v.2012.07
 

PQInternalKey.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2564 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-07 00:03:48 +0200 (Sa, 07. Jul 2012) $
7  ***************************************************************/
8 
44 #ifdef _MSC_VER
45 #pragma once
46 #endif
47 
48 
49 #ifndef OGDF_PQ_INTERNAL_KEY_H
50 #define OGDF_PQ_INTERNAL_KEY_H
51 
52 
53 #include <stdlib.h>
55 
56 namespace ogdf {
57 
58 
59 template<class T,class X,class Y> class PQNode;
60 
78 template<class T,class X,class Y>
79 class PQInternalKey : public PQBasicKey<T,X,Y>
80 {
81 public:
90 
91  //Constructor
92  PQInternalKey(Y element) { m_userStructInternal = element; }
93 
94  //Destructor
95  virtual ~PQInternalKey() {}
96 
98  virtual T userStructKey() { return 0; }
99 
101  virtual X userStructInfo() { return 0; }
102 
104  virtual Y userStructInternal() { return m_userStructInternal; }
105 };
106 
107 }
108 
109 #endif
110