Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

EmbedIndicator.h
Go to the documentation of this file.
1 
34 #pragma once
35 
40 
41 namespace ogdf {
42 namespace booth_lueker {
43 
44 class EmbedIndicator : public PQNode<edge, IndInfo*, bool> {
45 public:
47  : PQNode<edge, IndInfo*, bool>(count, infoPtr) { }
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 
58  PQNodeStatus status() const override { return PQNodeRoot::PQNodeStatus::Indicator; }
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 
68  bool setKey(PQLeafKey<edge, IndInfo*, bool>* pointerToKey) override {
69  return pointerToKey == nullptr;
70  }
71 
72  PQInternalKey<edge, IndInfo*, bool>* getInternal() const override { return nullptr; }
73 
74  bool setInternal(PQInternalKey<edge, IndInfo*, bool>* pointerToInternal) override {
75  return pointerToInternal == nullptr;
76  }
77 };
78 
79 }
80 }
ogdf::booth_lueker::EmbedIndicator::mark
PQNodeMark mark() const override
Definition: EmbedIndicator.h:62
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
IndInfo.h
Declaration of the class EmbedKey.
ogdf::booth_lueker::EmbedIndicator::status
PQNodeStatus status() const override
Definition: EmbedIndicator.h:58
PQNode.h
Declaration and implementation of the class PQNode.
ogdf::booth_lueker::EmbedIndicator::getInternal
PQInternalKey< edge, IndInfo *, bool > * getInternal() const override
Definition: EmbedIndicator.h:72
ogdf::booth_lueker::EmbedIndicator::setInternal
bool setInternal(PQInternalKey< edge, IndInfo *, bool > *pointerToInternal) override
Definition: EmbedIndicator.h:74
ogdf::PQLeafKey
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:87
ogdf::booth_lueker::EmbedIndicator::status
void status(PQNodeStatus) override
Sets the variable PQLeaf::m_status in the derived class PQLeaf and PQInternalNode.
Definition: EmbedIndicator.h:60
ogdf::booth_lueker::EmbedIndicator::EmbedIndicator
EmbedIndicator(int count, PQNodeKey< edge, IndInfo *, bool > *infoPtr)
Definition: EmbedIndicator.h:46
ogdf::booth_lueker::EmbedIndicator::type
void type(PQNodeType) override
Sets the variable PQInternalNode::m_type in the derived class PQLeaf and PQInternalNode.
Definition: EmbedIndicator.h:56
ogdf::booth_lueker::EmbedIndicator::mark
void mark(PQNodeMark) override
mark() sets the variable PQLeaf::m_mark in the derived class PQLeaf and PQInternalNode.
Definition: EmbedIndicator.h:64
ogdf::PQInternalKey
The class template PQInternalKey is a derived class of class template PQBasicKey.
Definition: PQInternalKey.h:58
ogdf::booth_lueker::IndInfo
Definition: IndInfo.h:41
PQNodeKey.h
Declaration and implementation of the class PQNodeKey.
ogdf::PQNodeKey::userStructInfo
virtual X userStructInfo()
Returns m_userStructInfo.
Definition: PQNodeKey.h:72
ogdf::PQNodeKey< edge, IndInfo *, bool >
ogdf::PQNode< edge, IndInfo *, bool >::getNodeInfo
PQNodeKey< edge, IndInfo *, bool > * getNodeInfo() const
Returns the identification number of a node.
Definition: PQNode.h:160
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:356
ogdf::booth_lueker::EmbedIndicator::setKey
bool setKey(PQLeafKey< edge, IndInfo *, bool > *pointerToKey) override
Definition: EmbedIndicator.h:68
ogdf::booth_lueker::EmbedIndicator::type
PQNodeType type() const override
Definition: EmbedIndicator.h:54
ogdf::booth_lueker::EmbedIndicator::getKey
PQLeafKey< edge, IndInfo *, bool > * getKey() const override
Definition: EmbedIndicator.h:66
ogdf::booth_lueker::EmbedIndicator::~EmbedIndicator
virtual ~EmbedIndicator()
Definition: EmbedIndicator.h:49
PQInternalKey.h
Declaration and implementation of the class PQInternalKey.
ogdf::booth_lueker::EmbedIndicator
Definition: EmbedIndicator.h:44
ogdf::PQNodeRoot::PQNodeStatus::Indicator
@ Indicator
Indicator for extra node status defines.
ogdf::PQNode
The class template PQBasicKey is an abstract base class.
Definition: PQBasicKey.h:109