Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

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 {
46 public:
47 
49  : PQNode<edge,IndInfo*,bool>(count,infoPtr) { }
50 
51  virtual ~EmbedIndicator() {
52  delete getNodeInfo()->userStructInfo();
53  delete getNodeInfo();
54  }
55 
56  PQNodeType type() const override { return PQNodeType::Leaf; }
57 
58  void type(PQNodeType) override { }
59 
61 
62  void status(PQNodeStatus) override { }
63 
64  PQNodeMark mark() const override { return PQNodeMark::Unmarked; }
65 
66  void mark(PQNodeMark) override { }
67 
68  PQLeafKey<edge,IndInfo*,bool>* getKey() const override { return nullptr; }
69 
70  bool setKey(PQLeafKey<edge,IndInfo*,bool>* pointerToKey) override {
71  return pointerToKey == nullptr;
72  }
73 
74  PQInternalKey<edge,IndInfo*,bool>* getInternal() const override { return nullptr; }
75 
76  bool setInternal(PQInternalKey<edge,IndInfo*,bool>* pointerToInternal) override {
77  return pointerToInternal == nullptr;
78  }
79 };
80 
81 }
82 }
PQNodeType type() const override
Returns the variable PQInternalNode::m_type 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...
Indicator for extra node status defines.
bool setInternal(PQInternalKey< edge, IndInfo *, bool > *pointerToInternal) override
PQNodeStatus status() const override
Returns the variable PQLeaf::m_status in the derived class PQLeaf and PQInternalNode.
Declaration of the class EmbedKey.
bool setKey(PQLeafKey< edge, IndInfo *, bool > *pointerToKey) override
void type(PQNodeType) override
void status(PQNodeStatus) override
Sets the variable PQLeaf::m_status in the derived class PQLeaf and PQInternalNode.
Class for the representation of edges.
Definition: Graph_d.h:291
PQNodeKey< edge, IndInfo *, bool > * getNodeInfo() const
Returns the identification number of a node.
Definition: PQNode.h:158
virtual X userStructInfo()
Returns m_userStructInfo.
Definition: PQNodeKey.h:72
Declaration and implementation of the class PQNodeKey.
The class template PQInternalKey is a derived class of class template PQBasicKey. ...
Definition: PQInternalKey.h:57
The class template PQLeafKey is a derived class of class template PQBasicKey.
Definition: PQLeafKey.h:86
The class template PQBasicKey is an abstract base class.
Definition: PQBasicKey.h:108
Declaration and implementation of the class PQInternalKey.
void mark(PQNodeMark) override
mark() sets the variable PQLeaf::m_mark in the derived class PQLeaf and PQInternalNode.
PQNodeMark mark() const override
mark() returns the variable PQLeaf::m_mark in the derived class PQLeaf and PQInternalNode.
The namespace for all OGDF objects.
PQInternalKey< edge, IndInfo *, bool > * getInternal() const override
getInternal() returns a pointer to the PQInternalKey information of a node, in case that the node is ...
Declaration and implementation of the class PQNode.
EmbedIndicator(int count, PQNodeKey< edge, IndInfo *, bool > *infoPtr)