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/memory.h>
35 
36 namespace ogdf {
37 
43 class PQNodeRoot {
44 public:
45  enum class PQNodeType { PNode = 1, QNode = 2, Leaf = 3, Undefined = 0 };
46 
47  enum class SibDirection { NoDir, Left, Right };
48 
49  // Status Definitions
50  enum class PQNodeStatus {
51  Empty = 1,
52  Partial = 2,
53  Full = 3,
54  Pertinent = 4,
55  ToBeDeleted = 5,
56 
58  Indicator = 6,
62  Eliminated = 6,
65  WhaDelete = 7,
68  PertRoot = 8
69  };
70 
71  // Mark Definitions for Bubble Phase
72  enum class PQNodeMark { Unmarked = 0, Queued = 1, Blocked = 2, Unblocked = 3 };
73 
74  PQNodeRoot() { }
75 
76  virtual ~PQNodeRoot() { }
77 
79 };
80 
81 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::PQNodeRoot::PQNodeType::PNode
@ PNode
ogdf::PQNodeRoot::~PQNodeRoot
virtual ~PQNodeRoot()
Definition: PQNodeRoot.h:76
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:85
ogdf::PQNodeRoot::PQNodeStatus::Pertinent
@ Pertinent
ogdf::PQNodeRoot::PQNodeType
PQNodeType
Definition: PQNodeRoot.h:45
ogdf::PQNodeRoot::PQNodeType::Leaf
@ Leaf
ogdf::PQNodeRoot::PQNodeMark
PQNodeMark
Definition: PQNodeRoot.h:72
ogdf::PQNodeRoot::PQNodeType::QNode
@ QNode
ogdf::PQNodeRoot::PQNodeRoot
PQNodeRoot()
Definition: PQNodeRoot.h:74
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:47
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:50
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:43