Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::HyperGraph::ArrayController< ElementType > Class Template Reference

Array controllers manage the graph arrays of an element. More...

#include <ogdf/basic/HyperGraph.h>

Public Member Functions

 ArrayController ()
 Creates a new array controller where the actual table size is zero. More...
 
 ~ArrayController ()
 Frees the array controller and unregisters all remaining arrays. More...
 
int newTableSize (int minSize)
 function to calculate the new tableSize; returns min(2^k | 2^k >= minSize) More...
 
void numUsedIndicesChanged (int numUsedIndices)
 called by the hyper graph when the amount of used entries has changed. More...
 
void registerArray (GraphArrayBase< ElementType > *pArray)
 Registers a new graph array and sets the size to m_tableSize. More...
 
void unregisterArray (GraphArrayBase< ElementType > *pArray)
 Unregisters a graph array by removing it from the list. More...
 

Protected Attributes

GraphArrayBase< ElementType > * m_first
 First array in the chain of attached arrays. More...
 
GraphArrayBase< ElementType > * m_last
 Last array in the chain of attached arrays. More...
 
int m_numArrays
 Number of attached arrays. More...
 
int m_tableSize
 Current table size which corresponds to the length of all attached arrays. More...
 

Friends

class ArrayControllerTypes< ElementType >
 

Detailed Description

template<typename ElementType>
class ogdf::HyperGraph::ArrayController< ElementType >

Array controllers manage the graph arrays of an element.

Definition at line 247 of file HyperGraph.h.

Constructor & Destructor Documentation

◆ ArrayController()

template<typename ElementType>
ogdf::HyperGraph::ArrayController< ElementType >::ArrayController ( )
inline

Creates a new array controller where the actual table size is zero.

Definition at line 252 of file HyperGraph.h.

◆ ~ArrayController()

template<typename ElementType >
ogdf::HyperGraph::ArrayController< ElementType >::~ArrayController ( )

Frees the array controller and unregisters all remaining arrays.

Definition at line 605 of file HyperGraph.h.

Member Function Documentation

◆ newTableSize()

template<typename ElementType>
int ogdf::HyperGraph::ArrayController< ElementType >::newTableSize ( int  minSize)
inline

function to calculate the new tableSize; returns min(2^k | 2^k >= minSize)

Definition at line 267 of file HyperGraph.h.

◆ numUsedIndicesChanged()

template<typename ElementType >
void ogdf::HyperGraph::ArrayController< ElementType >::numUsedIndicesChanged ( int  numUsedIndices)
inline

called by the hyper graph when the amount of used entries has changed.

Definition at line 632 of file HyperGraph.h.

◆ registerArray()

template<typename ElementType>
void ogdf::HyperGraph::ArrayController< ElementType >::registerArray ( GraphArrayBase< ElementType > *  pArray)
inline

Registers a new graph array and sets the size to m_tableSize.

Definition at line 615 of file HyperGraph.h.

◆ unregisterArray()

template<typename ElementType>
void ogdf::HyperGraph::ArrayController< ElementType >::unregisterArray ( GraphArrayBase< ElementType > *  pArray)
inline

Unregisters a graph array by removing it from the list.

Definition at line 624 of file HyperGraph.h.

Friends And Related Function Documentation

◆ ArrayControllerTypes< ElementType >

template<typename ElementType>
friend class ArrayControllerTypes< ElementType >
friend

Definition at line 249 of file HyperGraph.h.

Member Data Documentation

◆ m_first

template<typename ElementType>
GraphArrayBase<ElementType>* ogdf::HyperGraph::ArrayController< ElementType >::m_first
protected

First array in the chain of attached arrays.

Definition at line 280 of file HyperGraph.h.

◆ m_last

template<typename ElementType>
GraphArrayBase<ElementType>* ogdf::HyperGraph::ArrayController< ElementType >::m_last
protected

Last array in the chain of attached arrays.

Definition at line 283 of file HyperGraph.h.

◆ m_numArrays

template<typename ElementType>
int ogdf::HyperGraph::ArrayController< ElementType >::m_numArrays
protected

Number of attached arrays.

Definition at line 286 of file HyperGraph.h.

◆ m_tableSize

template<typename ElementType>
int ogdf::HyperGraph::ArrayController< ElementType >::m_tableSize
protected

Current table size which corresponds to the length of all attached arrays.

Definition at line 289 of file HyperGraph.h.


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