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