Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
PQNodeKey.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
56template<class T, class X, class Y>
57class PQNodeKey : public PQBasicKey<T, X, Y> {
58public:
61
62 // Constructor
63 explicit PQNodeKey(X info) : PQBasicKey<T, X, Y>() { m_userStructInfo = info; }
64
65 // Destructor
66 virtual ~PQNodeKey() { }
67
69 virtual T userStructKey() { return nullptr; }
70
72 virtual X userStructInfo() { return m_userStructInfo; }
73
75 virtual Y userStructInternal() { return 0; }
76};
77
78}
Declaration and implementation of the class PQBasicKey.
The class template PQNodeKey is a derived class of class template PQBasicKey.
Definition PQNodeKey.h:57
virtual Y userStructInternal()
Returns 0.
Definition PQNodeKey.h:75
virtual T userStructKey()
Returns 0.
Definition PQNodeKey.h:69
virtual ~PQNodeKey()
Definition PQNodeKey.h:66
PQNodeKey(X info)
Definition PQNodeKey.h:63
X m_userStructInfo
Stores the information. Has to be overloaded by the client.
Definition PQNodeKey.h:60
virtual X userStructInfo()
Returns m_userStructInfo.
Definition PQNodeKey.h:72
The namespace for all OGDF objects.