Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PQLeafKey.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 
86 template<class T, class X, class Y>
87 class PQLeafKey : public PQBasicKey<T, X, Y> {
88 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::PQLeafKey
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:87
ogdf::PQLeafKey::userStructKey
virtual T userStructKey()
Returns m_userStructKey.
Definition: PQLeafKey.h:110
ogdf::PQLeafKey::userStructInfo
virtual X userStructInfo()
Returns 0.
Definition: PQLeafKey.h:104
ogdf::PQLeafKey::m_userStructKey
T m_userStructKey
The m_userStructKey has to be overloaded by the client.
Definition: PQLeafKey.h:95
ogdf::PQLeafKey::userStructInternal
virtual Y userStructInternal()
Returns 0.
Definition: PQLeafKey.h:107
ogdf::PQLeafKey::~PQLeafKey
virtual ~PQLeafKey()
Definition: PQLeafKey.h:101
ogdf::PQBasicKey
Definition: PQBasicKey.h:112
PQBasicKey.h
Declaration and implementation of the class PQBasicKey.
ogdf::PQLeafKey::PQLeafKey
PQLeafKey(T element)
Definition: PQLeafKey.h:98