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 
83 template<class T, class X, class Y>
84 class PQLeafKey : public PQBasicKey<T, X, Y> {
85 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::PQLeafKey::userStructKey
virtual T userStructKey()
Returns m_userStructKey.
Definition: PQLeafKey.h:107
ogdf::PQLeafKey::userStructInfo
virtual X userStructInfo()
Returns 0.
Definition: PQLeafKey.h:101
ogdf::PQLeafKey::m_userStructKey
T m_userStructKey
The m_userStructKey has to be overloaded by the client.
Definition: PQLeafKey.h:92
ogdf::PQLeafKey::userStructInternal
virtual Y userStructInternal()
Returns 0.
Definition: PQLeafKey.h:104
ogdf::PQLeafKey::~PQLeafKey
virtual ~PQLeafKey()
Definition: PQLeafKey.h:98
ogdf::PQBasicKey
Definition: PQBasicKey.h:114
PQBasicKey.h
Declaration and implementation of the class PQBasicKey.
ogdf::PQLeafKey::PQLeafKey
PQLeafKey(T element)
Definition: PQLeafKey.h:95