Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
EmbedIndicator.h
Go to the documentation of this file.
1
34#pragma once
35
40
41namespace ogdf {
42namespace booth_lueker {
43
44class EmbedIndicator : public PQNode<edge, IndInfo*, bool> {
45public:
48
49 virtual ~EmbedIndicator() {
50 delete getNodeInfo()->userStructInfo();
51 delete getNodeInfo();
52 }
53
54 PQNodeType type() const override { return PQNodeType::Leaf; }
55
56 void type(PQNodeType) override { }
57
59
60 void status(PQNodeStatus) override { }
61
62 PQNodeMark mark() const override { return PQNodeMark::Unmarked; }
63
64 void mark(PQNodeMark) override { }
65
66 PQLeafKey<edge, IndInfo*, bool>* getKey() const override { return nullptr; }
67
69 return pointerToKey == nullptr;
70 }
71
72 PQInternalKey<edge, IndInfo*, bool>* getInternal() const override { return nullptr; }
73
77};
78
79}
80}
Declaration of the class EmbedKey.
Declaration and implementation of the class PQInternalKey.
Declaration and implementation of the class PQNode.
Declaration and implementation of the class PQNodeKey.
Class for the representation of edges.
Definition Graph_d.h:300
The class template PQInternalKey is a derived class of class template PQBasicKey.
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition PQLeafKey.h:87
The class template PQBasicKey is an abstract base class.
Definition PQNode.h:55
PQNodeKey< edge, IndInfo *, bool > * getNodeInfo() const
Returns the identification number of a node.
Definition PQNode.h:160
The class template PQNodeKey is a derived class of class template PQBasicKey.
Definition PQNodeKey.h:57
virtual X userStructInfo()
Returns m_userStructInfo.
Definition PQNodeKey.h:72
@ Indicator
Indicator for extra node status defines.
PQNodeMark mark() const override
mark() returns the variable PQLeaf::m_mark in the derived class PQLeaf and PQInternalNode.
PQLeafKey< edge, IndInfo *, bool > * getKey() const override
getKey() returns a pointer to the PQLeafKeyof a node, in case that the node is supposed to have a key...
PQNodeType type() const override
Returns the variable PQInternalNode::m_type in the derived class PQLeaf and PQInternalNode.
PQNodeStatus status() const override
Returns the variable PQLeaf::m_status in the derived class PQLeaf and PQInternalNode.
PQInternalKey< edge, IndInfo *, bool > * getInternal() const override
getInternal() returns a pointer to the PQInternalKey information of a node, in case that the node is ...
EmbedIndicator(int count, PQNodeKey< edge, IndInfo *, bool > *infoPtr)
bool setKey(PQLeafKey< edge, IndInfo *, bool > *pointerToKey) override
void mark(PQNodeMark) override
mark() sets the variable PQLeaf::m_mark in the derived class PQLeaf and PQInternalNode.
bool setInternal(PQInternalKey< edge, IndInfo *, bool > *pointerToInternal) override
void type(PQNodeType) override
Sets the variable PQInternalNode::m_type in the derived class PQLeaf and PQInternalNode.
void status(PQNodeStatus) override
Sets the variable PQLeaf::m_status in the derived class PQLeaf and PQInternalNode.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.