Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

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