Dynamic arrays indexed with nodes. More...
#include <ogdf/hypergraph/Hypergraph.h>
Public Member Functions | |
HyperedgeArray () | |
Constructs an empty hypernode array associated with no graph. More... | |
HyperedgeArray (const Hypergraph &H, const T &x) | |
Constructs a hypernode array associated with H . More... | |
virtual | ~HyperedgeArray () |
Destructor. More... | |
void | init (const Hypergraph &H) |
Reinitializes the array. Associates the array with H . More... | |
void | init (const Hypergraph &H, const T &x) |
Reinitializes the array. Associates the array with H . More... | |
HyperedgeArray< T > & | operator= (const HyperedgeArray< T > &a) |
Assignment operator. More... | |
T & | operator[] (hyperedge e) |
Returns a reference to the element with the index of e . More... | |
T & | operator[] (int index) |
Returns a reference to the element with index index . More... | |
const T & | operator[] (int index) const |
Returns a reference to the element with index index . More... | |
virtual void | reregister (const Hypergraph *H) |
bool | valid () const |
Returns true iff the array is associated with a hypergraph. More... | |
Private Member Functions | |
virtual void | disconnect () |
virtual void | enlargeTable (int newTableSize) |
virtual void | reinit (int initTableSize) |
Private Attributes | |
T | m_x |
The default value for array elements. More... | |
OGDF_NEW_DELETE | |
Dynamic arrays indexed with nodes.
Definition at line 402 of file Hypergraph.h.
|
inline |
Constructs an empty hypernode array associated with no graph.
Definition at line 201 of file HypergraphArray.h.
|
inline |
Constructs a hypernode array associated with H
.
Definition at line 207 of file HypergraphArray.h.
|
inlinevirtual |
Destructor.
Definition at line 215 of file HypergraphArray.h.
|
inlineprivatevirtual |
Definition at line 288 of file HypergraphArray.h.
|
inlineprivatevirtual |
Definition at line 278 of file HypergraphArray.h.
|
inline |
Reinitializes the array. Associates the array with H
.
Definition at line 255 of file HypergraphArray.h.
|
inline |
Reinitializes the array. Associates the array with H
.
Definition at line 261 of file HypergraphArray.h.
|
inline |
Assignment operator.
Definition at line 246 of file HypergraphArray.h.
|
inline |
Returns a reference to the element with the index of e
.
Definition at line 228 of file HypergraphArray.h.
|
inline |
Returns a reference to the element with index index
.
Definition at line 240 of file HypergraphArray.h.
|
inline |
Returns a reference to the element with index index
.
Definition at line 234 of file HypergraphArray.h.
|
inlineprivatevirtual |
Definition at line 283 of file HypergraphArray.h.
|
inlinevirtual |
Definition at line 267 of file HypergraphArray.h.
|
inline |
Returns true iff the array is associated with a hypergraph.
Definition at line 222 of file HypergraphArray.h.
|
private |
The default value for array elements.
Definition at line 196 of file HypergraphArray.h.
|
private |
Definition at line 294 of file HypergraphArray.h.