|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
38 template<
class T,
class X,
class Y>
40 template<
class T,
class X,
class Y>
42 template<
class T,
class X,
class Y>
54 template<
class T,
class X,
class Y>
75 :
PQNode<T, X, Y>(count, infoPtr) {
79 keyPtr->setNodePointer(
this);
88 keyPtr->setNodePointer(
this);
127 if (pointerToKey !=
nullptr) {
159 if (pointerToInternal !=
nullptr) {
The namespace for all OGDF objects.
Declaration and implementation of the class PQNode.
PQLeaf(int count, PQNodeRoot::PQNodeStatus stat, PQLeafKey< T, X, Y > *keyPtr, PQNodeKey< T, X, Y > *infoPtr)
The client may choose between two different constructors.
PQNodeRoot::PQNodeMark m_mark
m_mark is a variable, storing if the PQLeaf is QUEUEUD, BLOCKED or UNBLOCKED (see PQNode) during the ...
virtual ~PQLeaf()
The destructor does not delete any accompanying information class as PQLeafKey, PQNodeKey and PQInter...
The class template PQLeafKey is a derived class of class template PQBasicKey.
virtual void mark(PQNodeRoot::PQNodeMark m)
Sets the variable m_mark.
PQLeaf(int count, PQNodeRoot::PQNodeStatus stat, PQLeafKey< T, X, Y > *keyPtr)
Declaration and implementation of the class PQNodeRoot.
virtual void status(PQNodeRoot::PQNodeStatus s)
Sets the variable m_status in the derived class PQLeaf.
The class template PQInternalKey is a derived class of class template PQBasicKey.
PQNodeRoot::PQNodeStatus m_status
m_status is a variable storing the status of a PQLeaf.
virtual void type(PQNodeRoot::PQNodeType)
Sets the variable PQInternalNode::m_type in the derived class PQLeaf.
virtual PQNodeRoot::PQNodeMark mark() const
Returns the variable m_mark.
virtual bool setInternal(PQInternalKey< T, X, Y > *pointerToInternal)
setInternal() accepts only pointers pointerToInternal = 0.
The datastructure PQ-tree was designed to present a set of permutations on an arbitrary set of elemen...
virtual PQNodeRoot::PQNodeStatus status() const
Returns the variable m_status in the derived class PQLeaf.
virtual PQNodeRoot::PQNodeType type() const
Returns the variable PQInternalNode::m_type in the derived class PQLeaf.
virtual bool setKey(PQLeafKey< T, X, Y > *pointerToKey)
setKey() sets the pointer variable m_pointerToKey to the specified address of pointerToKey that is of...
The class template PQNodeKey is a derived class of class template PQBasicKey.
virtual PQLeafKey< T, X, Y > * getKey() const
getKey() returns a pointer to the PQLeafKey of PQLeaf.
PQLeafKey< T, X, Y > * m_pointerToKey
m_pointerToKey stores the adress of the corresponding PQLeafKey.
virtual PQInternalKey< T, X, Y > * getInternal() const
getInternal() returns 0.
The class template PQBasicKey is an abstract base class.