Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::pc_tree::PCTree::Observer Struct Reference

Interface for Observers that can be notified of all changes made to the tree during an update. More...

#include <ogdf/basic/pctree/PCTree.h>

+ Inheritance diagram for ogdf::pc_tree::PCTree::Observer:

Public Types

enum class  Stage { Trivial , NoPartials , InvalidTP , SingletonTP , Done }
 

Public Member Functions

virtual void afterMerge (PCTree &tree, PCNode *successor, PCNode *mergedNode)
 
virtual void beforeMerge (PCTree &tree, int count, PCNode *tpNeigh)
 
virtual void centralCreated (PCTree &tree, PCNode *central)
 
virtual void fullNodeSplit (PCTree &tree, PCNode *fullNode)
 
virtual void labelsAssigned (PCTree &tree, PCNode *firstPartial, PCNode *lastPartial, int partialCount)
 
virtual void makeConsecutiveCalled (PCTree &tree, FullLeafIter consecutiveLeaves)
 
virtual void makeConsecutiveDone (PCTree &tree, Stage stage, bool success)
 
virtual void nodeDeleted (PCTree &tree, PCNode *toBeDeleted)
 
virtual void nodeReplaced (PCTree &tree, PCNode *replaced, PCNode *replacement)
 
virtual void onApexMoved (PCTree &tree, PCNode *apexCandidate, PCNode *central, PCNode *parent)
 
virtual void onNodeCreate (PCNode *node)
 
virtual void terminalPathFound (PCTree &tree, PCNode *apex, PCNode *apexTPPred2, int terminalPathLength)
 
virtual void whenCNodeMerged (PCTree &tree, PCNode *tpNeigh, bool tpNeighSiblingsFlipped, PCNode *fullNeigh, PCNode *fullOuterChild)
 
virtual void whenPNodeMerged (PCTree &tree, PCNode *tpNeigh, PCNode *tpPred, PCNode *fullNeigh)
 

Detailed Description

Interface for Observers that can be notified of all changes made to the tree during an update.

Definition at line 634 of file PCTree.h.

Member Enumeration Documentation

◆ Stage

Enumerator
Trivial 
NoPartials 
InvalidTP 
SingletonTP 
Done 

Definition at line 635 of file PCTree.h.

Member Function Documentation

◆ afterMerge()

virtual void ogdf::pc_tree::PCTree::Observer::afterMerge ( PCTree tree,
PCNode successor,
PCNode mergedNode 
)
inlinevirtual

Definition at line 655 of file PCTree.h.

◆ beforeMerge()

virtual void ogdf::pc_tree::PCTree::Observer::beforeMerge ( PCTree tree,
int  count,
PCNode tpNeigh 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 652 of file PCTree.h.

◆ centralCreated()

virtual void ogdf::pc_tree::PCTree::Observer::centralCreated ( PCTree tree,
PCNode central 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 649 of file PCTree.h.

◆ fullNodeSplit()

virtual void ogdf::pc_tree::PCTree::Observer::fullNodeSplit ( PCTree tree,
PCNode fullNode 
)
inlinevirtual

Definition at line 665 of file PCTree.h.

◆ labelsAssigned()

virtual void ogdf::pc_tree::PCTree::Observer::labelsAssigned ( PCTree tree,
PCNode firstPartial,
PCNode lastPartial,
int  partialCount 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 642 of file PCTree.h.

◆ makeConsecutiveCalled()

virtual void ogdf::pc_tree::PCTree::Observer::makeConsecutiveCalled ( PCTree tree,
FullLeafIter  consecutiveLeaves 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 639 of file PCTree.h.

◆ makeConsecutiveDone()

virtual void ogdf::pc_tree::PCTree::Observer::makeConsecutiveDone ( PCTree tree,
Stage  stage,
bool  success 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 668 of file PCTree.h.

◆ nodeDeleted()

virtual void ogdf::pc_tree::PCTree::Observer::nodeDeleted ( PCTree tree,
PCNode toBeDeleted 
)
inlinevirtual

Definition at line 675 of file PCTree.h.

◆ nodeReplaced()

virtual void ogdf::pc_tree::PCTree::Observer::nodeReplaced ( PCTree tree,
PCNode replaced,
PCNode replacement 
)
inlinevirtual

Definition at line 677 of file PCTree.h.

◆ onApexMoved()

virtual void ogdf::pc_tree::PCTree::Observer::onApexMoved ( PCTree tree,
PCNode apexCandidate,
PCNode central,
PCNode parent 
)
inlinevirtual

Definition at line 671 of file PCTree.h.

◆ onNodeCreate()

virtual void ogdf::pc_tree::PCTree::Observer::onNodeCreate ( PCNode node)
inlinevirtual

Definition at line 637 of file PCTree.h.

◆ terminalPathFound()

virtual void ogdf::pc_tree::PCTree::Observer::terminalPathFound ( PCTree tree,
PCNode apex,
PCNode apexTPPred2,
int  terminalPathLength 
)
inlinevirtual

Reimplemented in ogdf::pc_tree::PCTree::LoggingObserver.

Definition at line 646 of file PCTree.h.

◆ whenCNodeMerged()

virtual void ogdf::pc_tree::PCTree::Observer::whenCNodeMerged ( PCTree tree,
PCNode tpNeigh,
bool  tpNeighSiblingsFlipped,
PCNode fullNeigh,
PCNode fullOuterChild 
)
inlinevirtual

Definition at line 661 of file PCTree.h.

◆ whenPNodeMerged()

virtual void ogdf::pc_tree::PCTree::Observer::whenPNodeMerged ( PCTree tree,
PCNode tpNeigh,
PCNode tpPred,
PCNode fullNeigh 
)
inlinevirtual

Definition at line 658 of file PCTree.h.


The documentation for this struct was generated from the following file: