Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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