Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::NodeArrayBase Class Referenceabstract

Abstract base class for node arrays. More...

#include <ogdf/basic/NodeArray.h>

Public Member Functions

 NodeArrayBase ()
 Initializes an node array not associated with a graph. More...
 
 NodeArrayBase (const Graph *pG)
 Initializes an node array associated with pG. More...
 
 NodeArrayBase (NodeArrayBase &base)
 Moves node array base to this node array. More...
 
virtual ~NodeArrayBase ()
 
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 (NodeArrayBase &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...
 

Public Attributes

const Graphm_pGraph
 The associated graph. More...
 

Private Attributes

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

Detailed Description

Abstract base class for node arrays.

Defines the interface for event handling used by the Graph class. Use the parameterized class NodeArray for creating node arrays.

Definition at line 45 of file NodeArray.h.

Constructor & Destructor Documentation

◆ NodeArrayBase() [1/3]

ogdf::NodeArrayBase::NodeArrayBase ( )
inline

Initializes an node array not associated with a graph.

Definition at line 56 of file NodeArray.h.

◆ NodeArrayBase() [2/3]

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

Initializes an node array associated with pG.

Definition at line 59 of file NodeArray.h.

◆ NodeArrayBase() [3/3]

ogdf::NodeArrayBase::NodeArrayBase ( NodeArrayBase base)
inline

Moves node array base to this node array.

Definition at line 64 of file NodeArray.h.

◆ ~NodeArrayBase()

virtual ogdf::NodeArrayBase::~NodeArrayBase ( )
inlinevirtual

Definition at line 71 of file NodeArray.h.

Member Function Documentation

◆ disconnect()

virtual void ogdf::NodeArrayBase::disconnect ( )
pure virtual

Virtual function called when array is disconnected from the graph.

◆ enlargeTable()

virtual void ogdf::NodeArrayBase::enlargeTable ( int  newTableSize)
pure virtual

Virtual function called when table size has to be enlarged.

◆ moveRegister()

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

Moves array registration from base to this array.

Definition at line 90 of file NodeArray.h.

◆ reinit()

virtual void ogdf::NodeArrayBase::reinit ( int  initTableSize)
pure virtual

Virtual function called when table has to be reinitialized.

◆ reregister()

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

Associates the array with a new graph.

Definition at line 84 of file NodeArray.h.

Member Data Documentation

◆ m_it

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

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

Definition at line 50 of file NodeArray.h.

◆ m_pGraph

const Graph* ogdf::NodeArrayBase::m_pGraph

The associated graph.

Definition at line 53 of file NodeArray.h.


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