|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
39 template<
class T,
class X,
class Y>
41 template<
class T,
class X,
class Y>
81 template<
class T,
class X,
class Y>
86 :
PQNode<T, X, Y>(count, infoPtr) {
107 :
PQNode<T, X, Y>(count, infoPtr) {
115 :
PQNode<T, X, Y>(count) {
168 if (pointerToInternal !=
nullptr) {
PQInternalNode(int count, PQNodeRoot::PQNodeType typ, PQNodeRoot::PQNodeStatus stat, PQInternalKey< T, X, Y > *internalPtr)
The class template PQInternalNode is used to present P-nodes and Q-nodes in the PQ-Tree.
The namespace for all OGDF objects.
PQNodeRoot::PQNodeMark m_mark
#m_mark is a variable, storing if a PQInternalNode is QUEUEUD, BLOCKED or UNBLOCKED (see PQNode) duri...
Declaration and implementation of the class PQNode.
virtual PQNodeRoot::PQNodeStatus status() const
Returns the variable m_status in the derived class PQInternalNode.
The class template PQLeafKey is a derived class of class template PQBasicKey.
virtual PQLeafKey< T, X, Y > * getKey() const
Returns 0. An element of type PQInternalNode does not have a PQLeafKey.
virtual void type(PQNodeRoot::PQNodeType t)
Sets the variable m_type in the derived class PQInternalNode.
virtual PQInternalKey< T, X, Y > * getInternal() const
Returns a pointer to the PQInternalKey information.
virtual bool setInternal(PQInternalKey< T, X, Y > *pointerToInternal)
setInternal() sets the pointer variable m_pointerToInternal to the specified adress of pointerToInter...
Declaration and implementation of the class PQNodeRoot.
virtual void status(PQNodeRoot::PQNodeStatus s)
Sets the variable m_status in the derived class PQInternalNode.
The class template PQInternalKey is a derived class of class template PQBasicKey.
void setNodePointer(PQNode< T, X, Y > *pqNode)
The function setNodePointer() sets the private member m_nodePointer.
PQNodeRoot::PQNodeType m_type
m_status is a variable storing the status of a PQInternalNode.
~PQInternalNode()
The destructor does not delete any accompanying information class as PQLeafKey, PQNodeKey and PQInter...
PQInternalNode(int count, PQNodeRoot::PQNodeType typ, PQNodeRoot::PQNodeStatus stat, PQInternalKey< T, X, Y > *internalPtr, PQNodeKey< T, X, Y > *infoPtr)
virtual void mark(PQNodeRoot::PQNodeMark m)
Sets the variable m_mark.
PQInternalNode(int count, PQNodeRoot::PQNodeType typ, PQNodeRoot::PQNodeStatus stat, PQNodeKey< T, X, Y > *infoPtr)
The class template PQNodeKey is a derived class of class template PQBasicKey.
virtual PQNodeRoot::PQNodeMark mark() const
Returns the variable m_mark.
virtual PQNodeRoot::PQNodeType type() const
Returns the variable m_type in the derived class PQInternalNode.
PQNodeRoot::PQNodeStatus m_status
m_status is a variable storing the status of a PQInternalNode.
PQInternalKey< T, X, Y > * m_pointerToInternal
m_pointerToInternal stores the adress of the corresponding internal information.
Declaration and implementation of the class PQInternalKey.
PQInternalNode(int count, PQNodeRoot::PQNodeType typ, PQNodeRoot::PQNodeStatus stat)
virtual bool setKey(PQLeafKey< T, X, Y > *pointerToKey)
Accepts only pointers pointerToKey = 0.
The class template PQBasicKey is an abstract base class.