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
83template<class T, class X, class Y>
84class PQLeafKey : public PQBasicKey<T, X, Y> {
85public:
93
94 // Constructor
95 explicit PQLeafKey(T element) : PQBasicKey<T, X, Y>() { m_userStructKey = element; }
96
97 //Destructor
98 virtual ~PQLeafKey() { }
99
101 virtual X userStructInfo() { return nullptr; }
102
104 virtual Y userStructInternal() { return 0; }
105
107 virtual T userStructKey() { return m_userStructKey; }
108};
109
110}
Declaration and implementation of the class PQBasicKey.
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition PQLeafKey.h:84
virtual ~PQLeafKey()
Definition PQLeafKey.h:98
T m_userStructKey
The m_userStructKey has to be overloaded by the client.
Definition PQLeafKey.h:92
PQLeafKey(T element)
Definition PQLeafKey.h:95
virtual T userStructKey()
Returns m_userStructKey.
Definition PQLeafKey.h:107
virtual X userStructInfo()
Returns 0.
Definition PQLeafKey.h:101
virtual Y userStructInternal()
Returns 0.
Definition PQLeafKey.h:104
The namespace for all OGDF objects.