Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

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

Public Attributes

const Graphm_pGraph
 The associated graph. More...
 

Private Attributes

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

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 45 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 56 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 59 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 64 of file AdjEntryArray.h.

◆ ~AdjEntryArrayBase()

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

Destructor, unregisters the array.

Definition at line 71 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 92 of file AdjEntryArray.h.

◆ reinit()

◆ reregister()

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

Associates the array with a new graph.

Definition at line 86 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 50 of file AdjEntryArray.h.

◆ m_pGraph

const Graph* ogdf::AdjEntryArrayBase::m_pGraph

The associated graph.

Definition at line 53 of file AdjEntryArray.h.


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