Open
Graph Drawing
Framework

 v.2012.07
 

PQLeafKey.h
Go to the documentation of this file.
1 /*
2  * $Revision: 2523 $
3  *
4  * last checkin:
5  * $Author: gutwenger $
6  * $Date: 2012-07-02 20:59:27 +0200 (Mon, 02 Jul 2012) $
7  ***************************************************************/
8 
44 #ifdef _MSC_VER
45 #pragma once
46 #endif
47 
48 
49 #ifndef OGDF_PQ_LEAF_KEY_H
50 #define OGDF_PQ_LEAF_KEY_H
51 
52 
53 
54 #include <stdlib.h>
56 
57 namespace ogdf {
58 
59 
60 template<class T,class X,class Y> class PQNode;
61 
108 template<class T,class X,class Y>
109 class PQLeafKey : public PQBasicKey<T,X,Y>
110 {
111 public:
112 
120 
121  // Constructor
122  PQLeafKey(T element)
123  : PQBasicKey<T,X,Y>() { m_userStructKey = element; }
124 
125  //Destructor
126  virtual ~PQLeafKey() {}
127 
129  virtual X userStructInfo() { return 0; }
130 
132  virtual Y userStructInternal() {return 0; }
133 
135  virtual T userStructKey() { return m_userStructKey; }
136 
137 };
138 
139 }
140 
141 #endif