#include <ogdf/basic/HyperGraph.h>
Public Member Functions | |
| GraphArray () | |
| GraphArray (HyperGraph *pGraph) | |
| Creates a graph array attached to pGraph. | |
| GraphArray (HyperGraph *pGraph, const T &initialValue) | |
| Creates a graph array attached to pGraph where each entry. | |
| virtual | ~GraphArray () |
| If the array is attached to a graph, the array will be detached before it is deallocated. | |
| const T & | operator[] (const E *e) const |
| Returns a const reference to the entry for an indexed element. | |
| T & | operator[] (const E *e) |
| Returns a reference to the entry for an indexed element. | |
| HyperGraph * | graph () const |
| Returns the graph the array is attached to. | |
Protected Member Functions | |
| virtual void | setSize (int numElements) |
| Implementation of GraphArrayBase::setSize(int). | |
Protected Attributes | |
| HyperGraph * | m_pGraph |
| The graph the array is attached to. | |
| T | m_initialValue |
| The initial value for unset entries. | |
Friends | |
| class | HyperGraph |
Definition at line 225 of file HyperGraph.h.
| ogdf::HyperGraph::GraphArray< T, E >::GraphArray | ( | ) | [inline] |
Definition at line 230 of file HyperGraph.h.
| ogdf::HyperGraph::GraphArray< T, E >::GraphArray | ( | HyperGraph * | pGraph | ) | [inline] |
Creates a graph array attached to pGraph.
Definition at line 233 of file HyperGraph.h.
| ogdf::HyperGraph::GraphArray< T, E >::GraphArray | ( | HyperGraph * | pGraph, |
| const T & | initialValue | ||
| ) | [inline] |
Creates a graph array attached to pGraph where each entry.
Definition at line 240 of file HyperGraph.h.
| virtual ogdf::HyperGraph::GraphArray< T, E >::~GraphArray | ( | ) | [inline, virtual] |
If the array is attached to a graph, the array will be detached before it is deallocated.
Definition at line 247 of file HyperGraph.h.
| HyperGraph* ogdf::HyperGraph::GraphArray< T, E >::graph | ( | ) | const [inline] |
Returns the graph the array is attached to.
Definition at line 266 of file HyperGraph.h.
| const T& ogdf::HyperGraph::GraphArray< T, E >::operator[] | ( | const E * | e | ) | const [inline] |
Returns a const reference to the entry for an indexed element.
Definition at line 254 of file HyperGraph.h.
| T& ogdf::HyperGraph::GraphArray< T, E >::operator[] | ( | const E * | e | ) | [inline] |
Returns a reference to the entry for an indexed element.
Definition at line 260 of file HyperGraph.h.
| virtual void ogdf::HyperGraph::GraphArray< T, E >::setSize | ( | int | numElements | ) | [inline, protected, virtual] |
Implementation of GraphArrayBase::setSize(int).
Implements ogdf::HyperGraph::GraphArrayBase< E >.
Definition at line 274 of file HyperGraph.h.
friend class HyperGraph [friend] |
Reimplemented from ogdf::HyperGraph::GraphArrayBase< E >.
Definition at line 227 of file HyperGraph.h.
T ogdf::HyperGraph::GraphArray< T, E >::m_initialValue [protected] |
The initial value for unset entries.
Definition at line 284 of file HyperGraph.h.
HyperGraph* ogdf::HyperGraph::GraphArray< T, E >::m_pGraph [protected] |
The graph the array is attached to.
Definition at line 281 of file HyperGraph.h.