Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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> class PQNode;
39 
85 template<class T,class X,class Y>
86 class PQLeafKey : public PQBasicKey<T,X,Y>
87 {
88 public:
96 
97  // Constructor
98  explicit PQLeafKey(T element)
99  : PQBasicKey<T,X,Y>() { m_userStructKey = element; }
100 
101  //Destructor
102  virtual ~PQLeafKey() {}
103 
105  virtual X userStructInfo() { return nullptr; }
106 
108  virtual Y userStructInternal() {return 0; }
109 
111  virtual T userStructKey() { return m_userStructKey; }
112 };
113 
114 }
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:86
ogdf::PQLeafKey::userStructKey
virtual T userStructKey()
Returns m_userStructKey.
Definition: PQLeafKey.h:111
ogdf::PQLeafKey::userStructInfo
virtual X userStructInfo()
Returns 0.
Definition: PQLeafKey.h:105
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:108
ogdf::PQLeafKey::~PQLeafKey
virtual ~PQLeafKey()
Definition: PQLeafKey.h:102
ogdf::PQBasicKey
Definition: PQBasicKey.h:111
PQBasicKey.h
Declaration and implementation of the class PQBasicKey.
ogdf::PQLeafKey::PQLeafKey
PQLeafKey(T element)
Definition: PQLeafKey.h:98