Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

PQLeafKey.h
Go to the documentation of this file.
1 
32 #pragma once
33 
35 
36 namespace ogdf {
37 
38 template<class T,class X,class Y> class PQNode;
39 
85 template<class T,class X,class Y>
86 class PQLeafKey : public PQBasicKey<T,X,Y>
87 {
88 public:
96 
97  // Constructor
98  explicit PQLeafKey(T element)
99  : PQBasicKey<T,X,Y>() { m_userStructKey = element; }
100 
101  //Destructor
102  virtual ~PQLeafKey() {}
103 
105  virtual X userStructInfo() { return nullptr; }
106 
108  virtual Y userStructInternal() {return 0; }
109 
111  virtual T userStructKey() { return m_userStructKey; }
112 };
113 
114 }
virtual T userStructKey()
Returns m_userStructKey.
Definition: PQLeafKey.h:111
virtual X userStructInfo()
Returns 0.
Definition: PQLeafKey.h:105
virtual Y userStructInternal()
Returns 0.
Definition: PQLeafKey.h:108
virtual ~PQLeafKey()
Definition: PQLeafKey.h:102
T m_userStructKey
The m_userStructKey has to be overloaded by the client.
Definition: PQLeafKey.h:95
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:86
The namespace for all OGDF objects.
PQLeafKey(T element)
Definition: PQLeafKey.h:98
Declaration and implementation of the class PQBasicKey.