Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PQNodeKey.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>
39 class PQNode;
40 
56 template<class T, class X, class Y>
57 class PQNodeKey : public PQBasicKey<T, X, Y> {
58 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::PQNodeKey::userStructKey
virtual T userStructKey()
Returns 0.
Definition: PQNodeKey.h:69
ogdf::PQNodeKey::m_userStructInfo
X m_userStructInfo
Stores the information. Has to be overloaded by the client.
Definition: PQNodeKey.h:60
ogdf::PQNodeKey::PQNodeKey
PQNodeKey(X info)
Definition: PQNodeKey.h:63
ogdf::PQNodeKey::userStructInfo
virtual X userStructInfo()
Returns m_userStructInfo.
Definition: PQNodeKey.h:72
ogdf::PQNodeKey::~PQNodeKey
virtual ~PQNodeKey()
Definition: PQNodeKey.h:66
ogdf::PQNodeKey::userStructInternal
virtual Y userStructInternal()
Returns 0.
Definition: PQNodeKey.h:75
ogdf::PQBasicKey
Definition: PQBasicKey.h:112
PQBasicKey.h
Declaration and implementation of the class PQBasicKey.