Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::AdjEntryArrayBase Class Reference

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

#include <ogdf/basic/AdjEntryArray.h>

+ Inheritance diagram for ogdf::AdjEntryArrayBase:

List of all members.

Public Member Functions

 AdjEntryArrayBase ()
 Initializes an adjacency entry array not associated with a graph.
 AdjEntryArrayBase (const Graph *pG)
 Initializes an adjacency entry array associated with pG.
virtual ~AdjEntryArrayBase ()
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.
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

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 63 of file AdjEntryArray.h.


Constructor & Destructor Documentation

ogdf::AdjEntryArrayBase::AdjEntryArrayBase ( )
inline

Initializes an adjacency entry array not associated with a graph.

Definition at line 74 of file AdjEntryArray.h.

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

Initializes an adjacency entry array associated with pG.

Definition at line 76 of file AdjEntryArray.h.

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

Definition at line 81 of file AdjEntryArray.h.


Member Function Documentation

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

Associates the array with a new graph.

Definition at line 96 of file AdjEntryArray.h.

virtual void ogdf::AdjEntryArrayBase::resetIndex ( int  newIndex,
int  oldIndex 
)
pure virtual

Member Data Documentation

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 68 of file AdjEntryArray.h.

const Graph* ogdf::AdjEntryArrayBase::m_pGraph

The associated graph.

Definition at line 71 of file AdjEntryArray.h.


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