Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::HyperGraph::GraphArray< T, E > Class Template Reference

#include <ogdf/basic/HyperGraph.h>

Inheritance diagram for ogdf::HyperGraph::GraphArray< T, E >:
ogdf::Array< T > ogdf::HyperGraph::GraphArrayBase< E >

List of all members.

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.
HyperGraphgraph () const
 Returns the graph the array is attached to.

Protected Member Functions

virtual void setSize (int numElements)
 Implementation of GraphArrayBase::setSize(int).

Protected Attributes

HyperGraphm_pGraph
 The graph the array is attached to.
m_initialValue
 The initial value for unset entries.

Friends

class HyperGraph

Detailed Description

template<typename T, typename E>
class ogdf::HyperGraph::GraphArray< T, E >

Definition at line 225 of file HyperGraph.h.


Constructor & Destructor Documentation

template<typename T, typename E>
ogdf::HyperGraph::GraphArray< T, E >::GraphArray ( ) [inline]

Definition at line 230 of file HyperGraph.h.

template<typename T, typename E>
ogdf::HyperGraph::GraphArray< T, E >::GraphArray ( HyperGraph pGraph) [inline]

Creates a graph array attached to pGraph.

Definition at line 233 of file HyperGraph.h.

template<typename T, typename E>
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.

template<typename T, typename E>
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.


Member Function Documentation

template<typename T, typename E>
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.

template<typename T, typename E>
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.

template<typename T, typename E>
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.

template<typename T, typename E>
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.


Friends And Related Function Documentation

template<typename T, typename E>
friend class HyperGraph [friend]

Reimplemented from ogdf::HyperGraph::GraphArrayBase< E >.

Definition at line 227 of file HyperGraph.h.


Member Data Documentation

template<typename T, typename E>
T ogdf::HyperGraph::GraphArray< T, E >::m_initialValue [protected]

The initial value for unset entries.

Definition at line 284 of file HyperGraph.h.

template<typename T, typename E>
HyperGraph* ogdf::HyperGraph::GraphArray< T, E >::m_pGraph [protected]

The graph the array is attached to.

Definition at line 281 of file HyperGraph.h.


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