Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::AdjEntryArrayBase Class Referenceabstract

Abstract base class for adjacency entry arrays. More...

#include <ogdf/basic/AdjEntryArray.h>

+ Inheritance diagram for ogdf::AdjEntryArrayBase:

Public Member Functions

 AdjEntryArrayBase ()
 Initializes an adjacency entry array not associated with a graph.
 
 AdjEntryArrayBase (AdjEntryArrayBase &base)
 Moves adjacency entry array base to this adjacency entry array.
 
 AdjEntryArrayBase (const Graph *pG)
 Initializes an adjacency entry array associated with pG.
 
virtual ~AdjEntryArrayBase ()
 Destructor, unregisters the array.
 
virtual void disconnect ()=0
 Virtual function called when array is disconnected from the graph.
 
virtual void enlargeTable (int newTableSize)=0
 Virtual function called when table size has to be enlarged.
 
void moveRegister (AdjEntryArrayBase &base)
 Moves array registration from base to this array.
 
virtual void reinit (int initTableSize)=0
 Virtual function called when table has to be reinitialized.
 
void reregister (const Graph *pG)
 Associates the array with a new graph.
 
virtual void resetIndex (int newIndex, int oldIndex)=0
 Virtual function called when the index of an adjacency entry is changed.
 

Public Attributes

const Graphm_pGraph
 The associated graph.
 

Private Attributes

ListIterator< AdjEntryArrayBase * > m_it
 Pointer to list element in the list of all registered adjacency entry arrays which references this array.
 

Detailed Description

Abstract base class for adjacency entry arrays.

Defines the interface for event handling used by the Graph class. Use the parameterized class AdjEntryArray for creating adjacency arrays.

Definition at line 44 of file AdjEntryArray.h.

Constructor & Destructor Documentation

◆ AdjEntryArrayBase() [1/3]

ogdf::AdjEntryArrayBase::AdjEntryArrayBase ( )
inline

Initializes an adjacency entry array not associated with a graph.

Definition at line 55 of file AdjEntryArray.h.

◆ AdjEntryArrayBase() [2/3]

ogdf::AdjEntryArrayBase::AdjEntryArrayBase ( const Graph pG)
inlineexplicit

Initializes an adjacency entry array associated with pG.

Definition at line 58 of file AdjEntryArray.h.

◆ AdjEntryArrayBase() [3/3]

ogdf::AdjEntryArrayBase::AdjEntryArrayBase ( AdjEntryArrayBase base)
inline

Moves adjacency entry array base to this adjacency entry array.

Definition at line 65 of file AdjEntryArray.h.

◆ ~AdjEntryArrayBase()

virtual ogdf::AdjEntryArrayBase::~AdjEntryArrayBase ( )
inlinevirtual

Destructor, unregisters the array.

Definition at line 74 of file AdjEntryArray.h.

Member Function Documentation

◆ disconnect()

◆ enlargeTable()

◆ moveRegister()

void ogdf::AdjEntryArrayBase::moveRegister ( AdjEntryArrayBase base)
inline

Moves array registration from base to this array.

Definition at line 101 of file AdjEntryArray.h.

◆ reinit()

◆ reregister()

void ogdf::AdjEntryArrayBase::reregister ( const Graph pG)
inline

Associates the array with a new graph.

Definition at line 91 of file AdjEntryArray.h.

◆ resetIndex()

Member Data Documentation

◆ m_it

ListIterator<AdjEntryArrayBase*> ogdf::AdjEntryArrayBase::m_it
private

Pointer to list element in the list of all registered adjacency entry arrays which references this array.

Definition at line 49 of file AdjEntryArray.h.

◆ m_pGraph

const Graph* ogdf::AdjEntryArrayBase::m_pGraph

The associated graph.

Definition at line 52 of file AdjEntryArray.h.


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