Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

PQNodeRoot.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/basic.h>
35 #include <ogdf/basic/memory.h>
36 
37 namespace ogdf {
38 
44 class PQNodeRoot {
45 public:
46  enum class PQNodeType { PNode = 1, QNode = 2, Leaf = 3, Undefined = 0 };
47 
48  enum class SibDirection { NoDir, Left, Right };
49 
50  // Status Definitions
51  enum class PQNodeStatus {
52  Empty = 1,
53  Partial = 2,
54  Full = 3,
55  Pertinent = 4,
56  ToBeDeleted = 5,
57 
59  Indicator = 6,
63  Eliminated = 6,
66  WhaDelete = 7,
69  PertRoot = 8
70  };
71 
72  // Mark Definitions for Bubble Phase
73  enum class PQNodeMark { Unmarked = 0, Queued = 1, Blocked = 2, Unblocked = 3 };
74 
75  PQNodeRoot() { }
76 
77  virtual ~PQNodeRoot() { }
78 
80 };
81 
82 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
ogdf::PQNodeRoot::PQNodeType::PNode
@ PNode
ogdf::PQNodeRoot::~PQNodeRoot
virtual ~PQNodeRoot()
Definition: PQNodeRoot.h:77
ogdf::PQNodeRoot::PQNodeStatus::WhaDelete
@ WhaDelete
Nodes that need to be removed in order to obtain a maximal pertinent sequence are marked WhaDelete.
ogdf::PQNodeRoot::PQNodeMark::Unmarked
@ Unmarked
OGDF_NEW_DELETE
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
Definition: memory.h:84
ogdf::PQNodeRoot::PQNodeStatus::Pertinent
@ Pertinent
ogdf::PQNodeRoot::PQNodeType
PQNodeType
Definition: PQNodeRoot.h:46
ogdf::PQNodeRoot::PQNodeType::Leaf
@ Leaf
ogdf::PQNodeRoot::PQNodeMark
PQNodeMark
Definition: PQNodeRoot.h:73
ogdf::PQNodeRoot::PQNodeType::QNode
@ QNode
ogdf::PQNodeRoot::PQNodeRoot
PQNodeRoot()
Definition: PQNodeRoot.h:75
ogdf::PQNodeRoot::PQNodeStatus::Empty
@ Empty
ogdf::PQNodeRoot::SibDirection::NoDir
@ NoDir
ogdf::PQNodeRoot::PQNodeStatus::Partial
@ Partial
ogdf::PQNodeRoot::PQNodeMark::Unblocked
@ Unblocked
ogdf::PQNodeRoot::PQNodeMark::Blocked
@ Blocked
ogdf::PQNodeRoot::PQNodeStatus::Full
@ Full
ogdf::PQNodeRoot::SibDirection
SibDirection
Definition: PQNodeRoot.h:48
ogdf::PQNodeRoot::SibDirection::Right
@ Right
ogdf::PQNodeRoot::PQNodeStatus::Eliminated
@ Eliminated
Nodes removed during the template reduction are marked as as Eliminated. Their memory is not freed....
ogdf::PQNodeRoot::PQNodeStatus
PQNodeStatus
Definition: PQNodeRoot.h:51
basic.h
Basic declarations, included by all source files.
ogdf::PQNodeRoot::SibDirection::Left
@ Left
ogdf::PQNodeRoot::PQNodeMark::Queued
@ Queued
ogdf::PQNodeRoot::PQNodeType::Undefined
@ Undefined
memory.h
Declaration of memory manager for allocating small pieces of memory.
ogdf::PQNodeRoot::PQNodeStatus::PertRoot
@ PertRoot
The pertinent Root is marked PertRoot during the clean up after a reduction. Technical.
ogdf::PQNodeRoot::PQNodeStatus::ToBeDeleted
@ ToBeDeleted
ogdf::PQNodeRoot::PQNodeStatus::Indicator
@ Indicator
Indicator for extra node status defines.
ogdf::PQNodeRoot
The class PQNodeRoot is used as a base class of the class PQNode.
Definition: PQNodeRoot.h:44